refactor(bedrock.py): take model names from model cost dict

This commit is contained in:
Krrish Dholakia 2023-10-10 07:34:55 -07:00
parent 152ffca815
commit 0d863f00ad
6 changed files with 21 additions and 15 deletions

View file

@ -1409,8 +1409,13 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None):
## petals
elif model in litellm.petals_models:
custom_llm_provider = "petals"
## bedrock
elif model in litellm.bedrock_models:
custom_llm_provider = "bedrock"
# openai embeddings
elif model in litellm.open_ai_embedding_models:
custom_llm_provider = "openai"
# cohere embeddings
elif model in litellm.cohere_embedding_models:
custom_llm_provider = "cohere"