{"record":{"id":"0bc6cc0a3d0ea4ef","repo":"BerriAI/litellm","slug":"list-evals-is-not-supported-for-custom-llm-provid","errorCode":null,"errorMessage":"LIST evals is not supported for {custom_llm_provider}","messagePattern":"LIST evals is not supported for (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/evals/main.py","lineNumber":348,"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(\"alist_evals\", 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\"LIST evals is not supported for {custom_llm_provider}\")\n\n        # Build list parameters\n        list_params: Final[ListEvalsParams] = {}\n        if limit is not None:\n            list_params[\"limit\"] = limit\n        if after is not None:\n            list_params[\"after\"] = after\n        if before is not None:\n            list_params[\"before\"] = before\n        if order is not None:\n            list_params[\"order\"] = order\n        if order_by is not None:\n            list_params[\"order_by\"] = order_by\n\n        # Merge extra_query if provided\n        if extra_query:\n            list_params.update(extra_query)\n","sourceCodeStart":330,"sourceCodeEnd":366,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/evals/main.py#L330-L366","documentation":"litellm.list_evals follows the same gate as every evals helper: ProviderConfigManager.get_provider_evals_api_config (litellm/utils.py:8487) only instantiates OpenAIEvalsConfig for LlmProviders.OPENAI and returns None otherwise, so litellm/evals/main.py:348 raises ValueError(\"LIST evals is not supported for {custom_llm_provider}\") before building any request. The evals listing feature is OpenAI-only by design.","triggerScenarios":"Calling litellm.list_evals(custom_llm_provider=\"<non-openai>\", ...) or routing through a model alias whose provider prefix (e.g. \"anthropic/...\") is passed as the evals provider.","commonSituations":"Porting eval dashboards written against OpenAI to other backends; copy-pasting evals code between projects with different default providers; CI scripts that parameterize provider by environment variable.","solutions":["Call litellm.list_evals() without custom_llm_provider (defaults to \"openai\") or explicitly with \"openai\".","Point OpenAI-compatible gateways at provider=\"openai\" plus api_base/api_key kwargs.","Upgrade litellm and re-check — provider coverage of the evals helpers can expand over time.","For non-OpenAI backends, query their native eval-listing APIs directly."],"exampleFix":"# before\nlitellm.list_evals(custom_llm_provider=\"vertex_ai\", limit=20)  # ValueError\n\n# after\nevals = litellm.list_evals(custom_llm_provider=\"openai\", limit=20)","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 list_evals 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":["Centralize evals calls in one module and assert provider=='openai' there once.","Don't derive the evals provider from model aliases — set it explicitly to 'openai'.","For other backends, call their native eval-listing endpoints."],"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"}