langchain_community.utilities.portkey
.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”
Attributes
Methods
Config
(api_key[, trace_id, environment, ...])__init__
()- static Config(api_key: str, trace_id: Optional[str] = None, environment: Optional[str] = None, user: Optional[str] = None, organisation: Optional[str] = None, prompt: Optional[str] = None, retry_count: Optional[int] = None, cache: Optional[str] = None, cache_force_refresh: Optional[str] = None, cache_age: Optional[int] = None) Dict[str, str] [source]¶
- Parameters
api_key (str) –
trace_id (Optional[str]) –
environment (Optional[str]) –
user (Optional[str]) –
organisation (Optional[str]) –
prompt (Optional[str]) –
retry_count (Optional[int]) –
cache (Optional[str]) –
cache_force_refresh (Optional[str]) –
cache_age (Optional[int]) –
- Return type
Dict[str, str]
- __init__()¶