forked from phoenix/litellm-mirror
refactor(bedrock.py): take model names from model cost dict
This commit is contained in:
parent
152ffca815
commit
0d863f00ad
6 changed files with 21 additions and 15 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue