{"record":{"id":"8ac48f7bea8b55d3","repo":"BerriAI/litellm","slug":"update-eval-is-not-supported-for-custom-llm-provi","errorCode":null,"errorMessage":"UPDATE eval is not supported for {custom_llm_provider}","messagePattern":"UPDATE eval is not supported for (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/evals/main.py","lineNumber":679,"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(\"aupdate_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\"UPDATE eval is not supported for {custom_llm_provider}\")\n\n        # Build update request\n        update_request: Final[UpdateEvalRequest] = {}\n        if name is not None:\n            update_request[\"name\"] = name\n\n        # Filter metadata to exclude internal LiteLLM fields\n        if metadata is not None:\n            # List of internal LiteLLM metadata keys that should NOT be sent to OpenAI\n            internal_keys: Final = {\n                \"headers\",\n                \"requester_metadata\",\n                \"user_api_key_hash\",\n                \"user_api_key_alias\",\n                \"user_api_key_spend\",\n                \"user_api_key_max_budget\",\n                \"user_api_key_team_id\",\n                \"user_api_key_user_id\",","sourceCodeStart":661,"sourceCodeEnd":697,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/evals/main.py#L661-L697","documentation":"litellm.update_eval is gated by the OpenAI-only evals provider registry (litellm/utils.py:8487 returns a config only for LlmProviders.OPENAI), so evals/main.py:679 raises ValueError(\"UPDATE eval is not supported for {custom_llm_provider}\") before building the update request. Updating eval names/metadata is only implemented against OpenAI's /v1/evals endpoint.","triggerScenarios":"Calling litellm.update_eval(eval_id=..., name=..., custom_llm_provider=<non-openai>) — e.g. renaming an eval while targeting azure, or any provider resolved from a model prefix other than openai.","commonSituations":"Admin tooling that manages evals across environments where only some are OpenAI; scripts that derive custom_llm_provider from a deployment list.","solutions":["Use custom_llm_provider=\"openai\" or omit the argument (defaults to \"openai\").","For OpenAI-compatible servers, keep provider \"openai\" and pass api_base/api_key.","Upgrade litellm in case additional evals providers were added.","Manage non-OpenAI evals with the provider's own API/console."],"exampleFix":"# before\nlitellm.update_eval(eval_id=\"eval_123\", name=\"renamed\", custom_llm_provider=\"azure\")  # ValueError\n\n# after\nlitellm.update_eval(eval_id=\"eval_123\", name=\"renamed\", custom_llm_provider=\"openai\")","handlingStrategy":"validation","validationCode":"import litellm\n\ndef assert_evals_provider(custom_llm_provider: str | None) -> None:\n    provider = custom_llm_provider or \"openai\"\n    if litellm.LlmProviders(provider) is not litellm.LlmProviders.OPENAI:\n        raise ValueError(f\"litellm update_eval is OpenAI-only; got {provider!r}\")","typeGuard":"import litellm\n\ndef supports_litellm_evals(custom_llm_provider: str | None) -> bool:\n    return litellm.LlmProviders(custom_llm_provider or \"openai\") is litellm.LlmProviders.OPENAI","tryCatchPattern":null,"preventionTips":["Route update_eval through the same guarded helper as the other evals operations.","Pass api_base/api_key for gateways instead of switching the provider away from 'openai'.","Check litellm release notes before assuming a new provider gained evals support."],"tags":["evals","provider-support","validation","openai"],"backgroundTag":"unsupported-provider","analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}