Menu

Point your OpenAI client at a model that can't read your prompts — and check that before the first request
📰

Point your OpenAI client at a model that can't read your prompts — and check that before the first request

DEV Community: ai·Nukri Basharuli·16 days ago
#Cz0Ik0tM
#devtoai#devto#dev#gatekeeper#router
Long article (1108 words) — no AI summary yet.
Reading 0:00
15s threshold

By Nukri Basharuli and George Zhgenti

Here's a setup we see a lot. A claims team at an insurer has a working prototype on the OpenAI SDK that writes a short summary of each claim file. Then legal asks who else can see the claim text while the model is running. For any hosted API, the honest answer is the provider and whoever operates the GPUs, at least technically. The contract and the retention policy say they won't look. You have no way to check.

This post shows how to move that prototype to Confidential Router with almost no code changes, and how to verify where your data is going before every request.

The code change

Router speaks the standard OpenAI API. In Python you change base_url :

from openai import OpenAI

client = OpenAI ( base_url = "http://127.0.0.1:8787/v1" , # local Gatekeeper api_key = "sk-tee-v1-..." , )

resp = client . chat . completions .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.