VibeKit Proxy seamlessly integrates with the Vercel AI SDK, providing automatic data redaction and security for your AI-powered applications without changing your existing code.
import { generateText } from 'ai';import { openai } from '@ai-sdk/openai';const model = openai('gpt-4', { baseURL: 'http://localhost:8080/v1'});const result = await generateText({ model, prompt: 'My email is john@example.com and my SSN is 123-45-6789. Help me with privacy best practices.',});console.log(result.text);// Sensitive data will be automatically redacted in both request and response