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