mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix get llm provider
This commit is contained in:
parent
78c7ad7c68
commit
abc595998d
3 changed files with 4 additions and 1 deletions
|
@ -947,6 +947,9 @@ def get_llm_provider(model: str, custom_llm_provider: Optional[str] = None):
|
|||
## openai - chatcompletion + text completion
|
||||
if model in litellm.open_ai_chat_completion_models or model in litellm.open_ai_text_completion_models:
|
||||
custom_llm_provider = "openai"
|
||||
## anthropic
|
||||
elif model in litellm.anthropic_models:
|
||||
custom_llm_provider = "anthropic"
|
||||
## cohere
|
||||
elif model in litellm.cohere_models:
|
||||
custom_llm_provider = "cohere"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue