While using the OpenAI SDK is possible, we recommend using the Maitai SDK for the best experience and full access to all features.
Configure OpenAI SDK
You can use Maitai with your existing OpenAI SDK implementation by changing the base URL to point to Maitai’s API endpoint, and adding the required headers.Limitations
Downsides of the Base URL ApproachWhile using the base URL approach is simpler for existing OpenAI integrations, you’ll miss out on key Maitai features:
- No Automatic Fallbacks: If your selected provider is unavailable, requests will fail instead of automatically falling back to another provider. Native SDK users can configure fallback behavior for maximum reliability.
- No Configuration Management: You’ll need to hardcode model selection in your code instead of using Maitai’s centralized configuration management to dynamically select models based on rules.