门钥匙#

class langchain_community.utilities.portkey.Portkey[source]#

Portkey配置。

base#

Portkey API 的基础 URL。 默认值:“https://api.portkey.ai/v1/proxy

Type:

字符串

属性

方法

Config(api_key[, trace_id, environment, ...])

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][来源]#
Parameters:
  • api_key (str)

  • trace_id (str | None)

  • 环境 (字符串 | )

  • 用户 (字符串 | )

  • 组织 (str | None)

  • prompt (str | None)

  • retry_count (int | None)

  • cache (str | None)

  • cache_force_refresh (str | None)

  • cache_age (int | None)

Return type:

字典[str, str]