Python (Unified Mode)
Call any provider using the OpenAI Python SDK
Setup
Basic chat
OpenAI
Anthropic
Gemini
Streaming
Works identically across all providers:
System messages
System messages are translated to each provider’s native format automatically (e.g., Anthropic’s system parameter, Gemini’s system_instruction).
Tool calling
The same tool definition works for every provider:
Multi-turn conversation
Switching providers
The power of unified mode: swap providers by changing one string. Your code, prompts, tools, and response handling all stay the same.