{"record":{"id":"e2cb58af82269a91","repo":"BerriAI/litellm","slug":"no-provider-config-found-for-model-model","errorCode":null,"errorMessage":"No provider config found for model: {model}","messagePattern":"No provider config found for model: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/bedrock/passthrough/transformation.py","lineNumber":140,"sourceCode":"    ) -> Optional[\"CostResponseTypes\"]:\n        from litellm import encoding\n        from litellm.types.utils import LlmProviders, ModelResponse\n        from litellm.utils import ProviderConfigManager\n\n        if \"invoke\" in endpoint:\n            chat_config_model = \"invoke/\" + model\n        elif \"converse\" in endpoint:\n            chat_config_model = \"converse/\" + model\n        else:\n            return None\n\n        provider_chat_config: Final = ProviderConfigManager.get_provider_chat_config(\n            provider=LlmProviders(custom_llm_provider),\n            model=chat_config_model,\n        )\n\n        if provider_chat_config is None:\n            raise ValueError(f\"No provider config found for model: {model}\")\n\n        litellm_model_response: Final[ModelResponse] = provider_chat_config.transform_response(\n            model=model,\n            messages=[{\"role\": \"user\", \"content\": \"no-message-pass-through-endpoint\"}],\n            raw_response=httpx_response,\n            model_response=ModelResponse(),\n            logging_obj=logging_obj,\n            optional_params={},\n            litellm_params={},\n            api_key=\"\",\n            request_data=request_data,\n            encoding=encoding,\n        )\n\n        return litellm_model_response\n\n    def _convert_raw_bytes_to_str_lines(self, raw_bytes: list[bytes]) -> list[str]:\n        from botocore.eventstream import EventStreamBuffer","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/bedrock/passthrough/transformation.py#L122-L158","documentation":"In the Bedrock passthrough transformation, for invoke/converse endpoints LiteLLM resolves a chat response transformer via ProviderConfigManager.get_provider_chat_config with a synthetic 'invoke/<model>' or 'converse/<model>' key. If no provider config class is registered for that provider/model, it raises ValueError. Practically: LiteLLM has no response transformer for the model you sent through the passthrough endpoint.","triggerScenarios":"Calling the Bedrock passthrough /invoke or /converse endpoint with a model whose provider LiteLLM cannot map to a registered chat config: newly released Bedrock models, custom/renamed model ids, or provider integrations not yet present in your litellm version.","commonSituations":"A new Bedrock model launch before LiteLLM adds its config class, running an older pinned litellm, on-prem gateways exposing unusual model ids.","solutions":["Upgrade litellm to a release that registers the model's provider config","Search the ProviderConfigManager registration tables in litellm/llms/bedrock/ for supported providers and use a model with a recognized provider prefix","Search/file litellm GitHub issues for the model name if support is genuinely missing"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"from litellm.litellm_core_utils.get_provider_info import ProviderConfigManager  # or the project's canonical import\n# smoke-test at startup that the passthrough model resolves a config\ntry:\n    ProviderConfigManager.get_provider_chat_config(model=f\"invoke/{MODEL_ID}\")\nexcept Exception:\n    raise SystemExit(f\"litellm has no invoke config for {MODEL_ID}; upgrade litellm or pick a supported model\")","typeGuard":null,"tryCatchPattern":"try:\n    result = litellm.completion_via_passthrough(...)  # /invoke or /converse path\nexcept ValueError as e:\n    if \"No provider config found for model\" in str(e):\n        # model unsupported by this litellm build: fail over to a known model\n        result = litellm.completion(model=FALLBACK_MODEL, messages=messages)\n    else:\n        raise","preventionTips":["Pin a litellm version recent enough for your Bedrock model set and re-test on upgrade","Run a startup canary request per configured model so unsupported models fail at boot, not at traffic time","Keep a fallback model mapping for models whose configs may lag behind AWS releases"],"tags":["bedrock","passthrough","model-support","config"],"backgroundTag":"model-not-supported","analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}