Google Gemini
Requirements
Section titled “Requirements”Server-side:
GEMINI_API_KEY=<your-ai-studio-key>Option A — SDK
Section titled “Option A — SDK”from tappass import Agent
agent = Agent("https://tappass.example.com", "tp_...")response = agent.chat("Hello", model="gemini/gemini-1.5-pro")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="gemini/gemini-1.5-pro", messages=[{"role": "user", "content": "Hello"}],)What’s supported
Section titled “What’s supported”- Gemini 1.5 Pro, Flash, Flash-8B
- Streaming + non-streaming
- Tool calls (function calling)
- Vision (image + video content)
- JSON mode / schema-typed outputs
Data residency
Section titled “Data residency”The AI Studio path (GEMINI_API_KEY) is US-routed. When TAPPASS_EU_DATA_RESIDENCY=true, the server’s LLM judge is restricted to EU-hosted models — see the Azure OpenAI page for EU-resident GPT deployments.