{"record":{"id":"71bdb3a7b954bca5","repo":"BerriAI/litellm","slug":"unable-to-determine-bedrock-embedding-provider-for","errorCode":null,"errorMessage":"Unable to determine bedrock embedding provider for model: {model}. Supported providers: {list(get_args(BEDROCK_EMBEDDING_PROVIDERS_LITERAL))}","messagePattern":"Unable to determine bedrock embedding provider for model: (.+?)\\. Supported providers: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"litellm/llms/bedrock/embed/embedding.py","lineNumber":397,"sourceCode":"        api_key: str | None = None,\n    ) -> EmbeddingResponse:\n        credentials, aws_region_name = self._load_credentials(optional_params)\n\n        ### TRANSFORMATION ###\n        unencoded_model_id: Final = optional_params.pop(\"model_id\", None) or model  # default to model if not passed\n        modelId: Final = urllib.parse.quote(unencoded_model_id, safe=\"\")\n        aws_region_name = self._get_aws_region_name(\n            optional_params={\"aws_region_name\": aws_region_name},\n            model=model,\n            model_id=unencoded_model_id,\n        )\n        # Check async invoke needs to be used\n        has_async_invoke: Final = \"async_invoke/\" in model\n        if has_async_invoke:\n            model = model.replace(\"async_invoke/\", \"\", 1)\n        provider: Final = self.get_bedrock_embedding_provider(model)\n        if provider is None:\n            raise Exception(\n                f\"Unable to determine bedrock embedding provider for model: {model}. \"\n                f\"Supported providers: {list(get_args(BEDROCK_EMBEDDING_PROVIDERS_LITERAL))}\"\n            )\n        inference_params = copy.deepcopy(optional_params)\n        inference_params = {\n            k: v for k, v in inference_params.items() if k.lower() not in self.aws_authentication_params\n        }\n        inference_params.pop(\"user\", None)  # make sure user is not passed in for bedrock call\n\n        data: CohereEmbeddingRequest | None = None\n        batch_data: list | None = None\n        if provider == \"cohere\":\n            data = BedrockCohereEmbeddingConfig()._transform_request(\n                model=model, input=input, inference_params=inference_params\n            )\n        elif provider == \"amazon\" and model in [\n            \"amazon.titan-embed-image-v1\",\n            \"amazon.titan-embed-text-v1\",","sourceCodeStart":379,"sourceCodeEnd":415,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/bedrock/embed/embedding.py#L379-L415","documentation":"Dispatch guard in Bedrock embeddings: the model does not map to any provider in BEDROCK_EMBEDDING_PROVIDERS_LITERAL, so no transformation config exists to build the invoke request. The model name is the input at fault.","triggerScenarios":"Thrown at litellm/llms/bedrock/embed/embedding.py:397 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported Bedrock embedding providers listed in the error.","Check the model id for typos.","Pass a model id that identifies a known embedding provider (e.g. amazon.titan-embed-text-v2:0)."],"exampleFix":null,"handlingStrategy":"validation","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"}