Official Portkey Python SDK to help take your AI apps to production
PORTKEY_API_KEY
recommended)AsyncPortkey
client instead of Portkey
with await
:
httpx.Client
to the Portkey SDK.
httpx.Client
options (e.g., for proxies, timeouts, custom headers).httpx.AsyncClient
to AsyncPortkey
.Can I use this SDK with OpenAI-compatible code?
How do I fix CERTIFICATE_VERIFY_FAILED or SSL errors?
httpx.Client
to the Portkey SDK with SSL verification disabled. See the docs above for an example. Warning: Disabling SSL verification is insecure—only use this as a last resort or for debugging.Where can I find more examples?