fix add azure/command-r-plus
This commit is contained in:
parent
65b1a7be73
commit
71352b1b36
@ -5573,6 +5573,16 @@ def get_llm_provider(
|
||||
dynamic_api_key = None
|
||||
# check if llm provider provided
|
||||
|
||||
# AZURE AI-Studio Logic - Azure AI Studio supports AZURE/Cohere
|
||||
# If User passes azure/command-r-plus -> we should send it to cohere_chat/command-r-plus
|
||||
if (
|
||||
model.split("/", 1)[0] == "azure"
|
||||
and model.split("/", 1)[1] in litellm.cohere_chat_models
|
||||
):
|
||||
custom_llm_provider = "openai"
|
||||
model = model.split("/", 1)[1]
|
||||
return model, custom_llm_provider, dynamic_api_key, api_base
|
||||
|
||||
if custom_llm_provider:
|
||||
return model, custom_llm_provider, dynamic_api_key, api_base
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user