{"record":{"id":"556747d3e412725a","repo":"BerriAI/litellm","slug":"bedrock-invoke-httpx-unknown-provider-provider","errorCode":null,"errorMessage":"Bedrock Invoke HTTPX: Unknown provider={provider}, model={model}. Try calling via converse route - `bedrock/converse/<model>`.","messagePattern":"Bedrock Invoke HTTPX: Unknown provider=(.+?), model=(.+?)\\. Try calling via converse route - `bedrock/converse/<model>`\\.","errorType":"validation","errorClass":"BedrockError","httpStatus":404,"severity":"error","filePath":"litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py","lineNumber":273,"sourceCode":"        elif provider == \"twelvelabs\":\n            return litellm.AmazonTwelveLabsPegasusConfig().transform_request(\n                model=model,\n                messages=messages,\n                optional_params=optional_params,\n                litellm_params=litellm_params,\n                headers=headers,\n            )\n        elif provider == \"openai\":\n            # OpenAI imported models use OpenAI Chat Completions format\n            return litellm.AmazonBedrockOpenAIConfig().transform_request(\n                model=model,\n                messages=messages,\n                optional_params=optional_params,\n                litellm_params=litellm_params,\n                headers=headers,\n            )\n        else:\n            raise BedrockError(\n                status_code=404,\n                message=f\"Bedrock Invoke HTTPX: Unknown provider={provider}, model={model}. Try calling via converse route - `bedrock/converse/<model>`.\",\n            )\n\n        return request_data\n\n    def transform_response(\n        self,\n        model: str,\n        raw_response: httpx.Response,\n        model_response: ModelResponse,\n        logging_obj: LiteLLMLoggingObj,\n        request_data: dict,\n        messages: list[AllMessageValues],\n        optional_params: dict,\n        litellm_params: dict,\n        encoding: Any,\n        api_key: str | None = None,","sourceCodeStart":255,"sourceCodeEnd":291,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py#L255-L291","documentation":"Dispatch guard in the Bedrock invoke transformation: the model's provider string did not match any provider handled by the invoke-route request transformer. The suggested remedy is to use the converse route (bedrock/converse/<model>) which supports all Bedrock models.","triggerScenarios":"Thrown at litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py:273 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Call the model via the converse route: bedrock/converse/<model>.","Check the model id maps to a supported invoke provider.","Use a model supported by the Bedrock invoke path."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}