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__()#