fix(router.py): init clients for azure/openai on set_model_list

This commit is contained in:
Krrish Dholakia 2023-12-15 20:23:29 -08:00
parent 4791dda66f
commit 4d8376a8e9

View file

@ -899,6 +899,9 @@ class Router:
if (
model_name in litellm.open_ai_chat_completion_models
or custom_llm_provider in litellm.openai_compatible_providers
or custom_llm_provider == "azure"
or custom_llm_provider == "custom_openai"
or custom_llm_provider == "openai"
or "ft:gpt-3.5-turbo" in model_name
or model_name in litellm.open_ai_embedding_models
):