{"record":{"id":"5db813ae1b1d1d15","repo":"BerriAI/litellm","slug":"api-base-is-required","errorCode":null,"errorMessage":"api_base is required","messagePattern":"api_base is required","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/arize/arize_phoenix_client.py","lineNumber":45,"sourceCode":"    - 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:\n            prompt_version_id: The ID of the prompt version to fetch\n\n        Returns:","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/integrations/arize/arize_phoenix_client.py#L27-L63","documentation":"Error \"api_base is required\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/integrations/arize/arize_phoenix_client.py:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass api_base 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-15T17:31:12.345Z"}