Portkey#
- class langchain_community.utilities.portkey.Portkey[source]#
Portkey configuration.
- base#
The base URL for the Portkey API. Default: βhttps://api.portkey.ai/v1/proxyβ
- Type:
str
Attributes
Methods
- static Config(api_key: str, trace_id: str | None = None, environment: str | None = None, user: str | None = None, organisation: str | None = None, prompt: str | None = None, retry_count: int | None = None, cache: str | None = None, cache_force_refresh: str | None = None, cache_age: int | None = None) Dict[str, str] [source]#
- Parameters:
api_key (str) β
trace_id (str | None) β
environment (str | None) β
user (str | None) β
organisation (str | None) β
prompt (str | None) β
retry_count (int | None) β
cache (str | None) β
cache_force_refresh (str | None) β
cache_age (int | None) β
- Return type:
Dict[str, str]
- __init__()#