Azure OpenAI
Azure OpenAI lets you keep traffic inside an EU region, bill via an existing Azure contract, and layer Microsoft’s content filters on top of TapPass’s own pipeline.
Requirements
Section titled “Requirements”Server-side (your platform team sets these):
AZURE_OPENAI_ENDPOINT=https://<resource>.openai.azure.comAZURE_OPENAI_API_KEY=<your-azure-key>AZURE_OPENAI_API_VERSION=2024-08-01-preview # or newerPlus at least one model deployment — for example gpt-4o-mini deployed as prod-chat.
Option A — SDK
Section titled “Option A — SDK”from tappass import Agent
agent = Agent("https://tappass.example.com", "tp_...")response = agent.chat("Hello", model="azure/prod-chat")The azure/ prefix tells TapPass to route to the Azure deployment of that name.
Option B — OpenAI SDK, zero-code
Section titled “Option B — OpenAI SDK, zero-code”export OPENAI_BASE_URL=https://tappass.example.com/v1export OPENAI_API_KEY=tp_...from openai import OpenAI
client = OpenAI()response = client.chat.completions.create( model="azure/prod-chat", messages=[{"role": "user", "content": "Hello"}],)No Azure-specific client or endpoint — TapPass handles the protocol translation.
Data residency
Section titled “Data residency”Pick an Azure region close to your users (West Europe, North Europe, Sweden Central). Combine with TAPPASS_EU_DATA_RESIDENCY=true to block routing to non-EU providers.
- Azure’s content filter is additive — if Azure flags a response, TapPass surfaces it as a detection.
- Private networking (Private Endpoints, VNet integration) is supported — TapPass only needs outbound access to the Azure endpoint.