{"record":{"id":"5a54d4a2092ead66","repo":"BerriAI/litellm","slug":"api-key-is-required","errorCode":null,"errorMessage":"api_key is required","messagePattern":"api_key is required","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/arize/arize_phoenix_client.py","lineNumber":42,"sourceCode":"    Supports:\n    - Authentication with Bearer tokens\n    - Fetching prompt versions\n    - Direct API base URL configuration\n    \"\"\"\n\n    def __init__(self, api_key: str | None = None, api_base: str | None = None):\n        \"\"\"\n        Initialize the Arize Phoenix client.\n\n        Args:\n            api_key: Arize Phoenix API token\n            api_base: Base URL for the Arize Phoenix API (e.g., 'https://app.phoenix.arize.com/s/workspace/v1')\n        \"\"\"\n        self.api_key = api_key\n        self.api_base = api_base\n\n        if not self.api_key:\n            raise ValueError(\"api_key is required\")\n\n        if not self.api_base:\n            raise ValueError(\"api_base is required\")\n\n        # Set up authentication headers\n        self.headers = {\n            \"Authorization\": f\"Bearer {self.api_key}\",\n            \"Accept\": \"application/json\",\n        }\n\n        # Initialize HTTPHandler\n        self.http_handler = HTTPHandler(disable_default_headers=True)\n\n    def get_prompt_version(self, prompt_version_id: str) -> dict[str, Any] | None:\n        \"\"\"\n        Fetch a prompt version from Arize Phoenix.\n\n        Args:","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/arize/arize_phoenix_client.py#L24-L60","documentation":"Error \"api_key is required\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/arize/arize_phoenix_client.py:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass api_key to the Arize Phoenix client."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}