01 / Guide
Point Any LLM SDK Through RedactAI
Keep your existing client library intact. Route outbound traffic through your in-VPC RedactAI endpoint and select a compliance policy header.
src/llm/client.ts
import OpenAI from "openai";
export const llm = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: "https://redact-proxy.internal.vpc/v1",
defaultHeaders: {
"X-Redact-Policy": "hipaa-strict",
"X-Redact-Mode": "ephemeral-tokenize",
},
});