Toggle Menu
Prev Up Next

# `langchain_community.utilities.portkey`.Portkey

class langchain_community.utilities.portkey.Portkey

  Portkey configuration.

  base

    The base URL for the Portkey API. Default: “https://api.portkey.ai/v1/proxy”

  Attributes

  `base` |

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