{"record":{"id":"b05883b9821dbdfb","repo":"BerriAI/litellm","slug":"create-run-is-not-supported-for-custom-llm-provid","errorCode":null,"errorMessage":"CREATE run is not supported for {custom_llm_provider}","messagePattern":"CREATE run is not supported for (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/evals/main.py","lineNumber":1213,"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(\"acreate_run\", 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\"CREATE run is not supported for {custom_llm_provider}\")\n\n        # Build create request\n        create_request: Final[CreateRunRequest] = {\n            \"data_source\": data_source,\n        }\n        if name is not None:\n            create_request[\"name\"] = name\n        # if metadata is not None:\n        #     create_request[\"metadata\"] = metadata\n\n        # Merge extra_body if provided\n        if extra_body:\n            create_request.update(extra_body)\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","sourceCodeStart":1195,"sourceCodeEnd":1231,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/evals/main.py#L1195-L1231","documentation":"litellm.create_run (start an eval run) is gated identically: ProviderConfigManager.get_provider_evals_api_config (litellm/utils.py:8487) returns None unless the provider is LlmProviders.OPENAI, so evals/main.py:1213 raises ValueError(\"CREATE run is not supported for {custom_llm_provider}\") before the run request is built. Running an eval is implemented only against OpenAI's /v1/evals/{id}/runs.","triggerScenarios":"Calling litellm.create_run(eval_id=..., data_source=..., custom_llm_provider=<non-openai>), or forwarding a provider resolved from a prefixed model like \"azure/gpt-4o\".","commonSituations":"Nightly eval jobs parameterized by provider; migrating an OpenAI eval suite to another backend and expecting litellm to abstract it; CI matrices iterating providers over the same script.","solutions":["Run evals with provider \"openai\": omit custom_llm_provider or pass \"openai\" explicitly.","For OpenAI-compatible endpoints, keep provider \"openai\" and set api_base/api_key in kwargs.","Guard scripts so the evals helpers are only invoked when the provider is openai.","Upgrade litellm — check whether get_provider_evals_api_config gained new providers."],"exampleFix":"# before\nlitellm.create_run(eval_id=\"eval_123\", data_source=ds, custom_llm_provider=\"azure\")  # ValueError\n\n# after\nrun = litellm.create_run(eval_id=\"eval_123\", data_source=ds, 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 create_run 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":"if not supports_litellm_evals(provider):\n    # skip or route to the provider's native eval runner\n    return\ntry:\n    litellm.create_run(eval_id=eval_id, data_source=ds, custom_llm_provider=\"openai\")\nexcept ValueError as e:\n    if \"not supported for\" in str(e):\n        ...  # handle OpenAI-only limitation\n    raise","preventionTips":["Skip evals-run jobs for non-openai rows in CI matrices instead of letting them crash.","Keep one shared provider guard for all seven evals helpers (create/list/get/update/delete/cancel/create_run).","Point OpenAI-compatible gateways at provider='openai' + api_base rather than a custom provider string."],"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"}