Python client library for the Portkey API - Control Panel for AI Apps with unified API signature, automated fallbacks, retries, load balancing, semantic caching, virtual keys, and comprehensive observability features.
—
Advanced configuration system for managing provider settings, routing rules, fallback strategies, and load balancing configurations.
class Configs:
def create(self, **kwargs): ...
def list(self, **kwargs): ...
def retrieve(self, **kwargs): ...
def update(self, **kwargs): ...
def delete(self, **kwargs): ...# Create configuration
config = portkey.configs.create({
"strategy": {"mode": "fallback"},
"targets": [
{"provider": "openai", "api_key": "key1"},
{"provider": "anthropic", "api_key": "key2"}
]
})Install with Tessl CLI
npx tessl i tessl/pypi-portkey-aidocs