{"record":{"id":"408223eb3dee64b6","repo":"BerriAI/litellm","slug":"get-eval-is-not-supported-for-custom-llm-provider","errorCode":null,"errorMessage":"GET eval is not supported for {custom_llm_provider}","messagePattern":"GET eval is not supported for (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/evals/main.py","lineNumber":514,"sourceCode":"    try:\n        litellm_logging_obj: Final[LiteLLMLoggingObj] = kwargs.get(\"litellm_logging_obj\")\n        litellm_call_id: Final[str | None] = kwargs.get(\"litellm_call_id\", None)\n        _is_async: Final = kwargs.pop(\"aget_eval\", False) is True\n\n        # Get LiteLLM parameters\n        litellm_params: Final = GenericLiteLLMParams(**kwargs)\n\n        # Determine provider\n        if custom_llm_provider is None:\n            custom_llm_provider = \"openai\"\n\n        # Get provider config\n        evals_api_provider_config: BaseEvalsAPIConfig | None = ProviderConfigManager.get_provider_evals_api_config(\n            provider=litellm.LlmProviders(custom_llm_provider),\n        )\n\n        if evals_api_provider_config is None:\n            raise ValueError(f\"GET eval is not supported for {custom_llm_provider}\")\n\n        # Validate environment and get headers\n        headers = extra_headers or {}\n        headers = evals_api_provider_config.validate_environment(headers=headers, litellm_params=litellm_params)\n\n        # Transform request\n        api_base: Final = litellm_params.api_base or DEFAULT_OPENAI_API_BASE\n        url, headers = evals_api_provider_config.transform_get_eval_request(\n            eval_id=eval_id,\n            api_base=api_base,\n            litellm_params=litellm_params,\n            headers=headers,\n        )\n\n        # Pre-call logging\n        litellm_logging_obj.update_from_kwargs(\n            kwargs=kwargs,\n            model=None,","sourceCodeStart":496,"sourceCodeEnd":532,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/evals/main.py#L496-L532","documentation":"Raised in litellm.evals.get_eval (litellm/evals/main.py:514) when the provider passed to the call has no Evals API config in ProviderConfigManager. Only LlmProviders.OPENAI maps to a config (OpenAIEvalsConfig); all other providers return None and the GET-by-eval-id call is refused before validate_environment/URL building.","triggerScenarios":"Calling litellm.evals.get_eval(eval_id=..., custom_llm_provider='azure'/'anthropic'/etc.); retrieving an eval created on OpenAI but with a provider string left over from other litellm calls.","commonSituations":"Hybrid apps that reuse a single provider constant across completion, files, and evals helpers; migrating evals off OpenAI and expecting LiteLLM parity.","solutions":["Call with custom_llm_provider='openai' or omit it (defaults to 'openai')","Confirm OPENAI_API_KEY is set since the OpenAI config's validate_environment will require it next","For other providers, hit their eval endpoints directly rather than through litellm.evals"],"exampleFix":"# before\ne = litellm.evals.get_eval(eval_id=\"eval_123\", custom_llm_provider=\"azure\")\n\n# after\ne = litellm.evals.get_eval(eval_id=\"eval_123\", custom_llm_provider=\"openai\")","handlingStrategy":"validation","validationCode":"if custom_llm_provider != \"openai\":\n    raise ValueError(\"get_eval requires the OpenAI provider\")\nlitellm.evals.get_eval(eval_id=eval_id, custom_llm_provider=\"openai\")","typeGuard":"def evals_provider_supported(provider: str) -> bool:\n    return provider == \"openai\"","tryCatchPattern":"try:\n    litellm.evals.get_eval(eval_id=eval_id)\nexcept ValueError as e:\n    if \"GET eval is not supported\" in str(e):\n        logger.error(\"evals are OpenAI-only in litellm\")\n        raise","preventionTips":["Centralize evals calls in one module that pins provider='openai'","Set OPENAI_API_KEY so the subsequent environment validation passes","Do not reuse deployment provider variables for evals calls"],"tags":["evals","provider-support","openai","validation"],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}