Sending sensitive customer data to LLMs like OpenAI's GPT-4 can be a compliance nightmare. Here's how to use DCE Australia to scrub your prompts at the Edge before they ever leave your infrastructure.
The Workflow
1. Capture user input.
2. Send to /api/redact.
3. Send redacted text to OpenAI.
// Secure OpenAI Flow
const safeText = await dce.redact(userInput);
const completion = await openai.createChatCompletion({
model: "gpt-4",
messages: [{ role: "user", content: safeText }],
});