mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-11 06:22:22 +00:00
fix add azure/command-r-plus
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user