(feat) detect amazon.titan-embed-text-v1 as bedrock embedding model

This commit is contained in:
ishaan-jaff 2023-11-01 14:46:33 -07:00
parent f4a45ec35b
commit 9cfd218101
4 changed files with 7 additions and 4 deletions

View file

@ -1700,6 +1700,8 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None, api_
# cohere embeddings
elif model in litellm.cohere_embedding_models:
custom_llm_provider = "cohere"
elif model in litellm.bedrock_embedding_models:
custom_llm_provider = "bedrock"
if custom_llm_provider is None or custom_llm_provider=="":
print()