From d427ba5438ed97632251c55ffcc84d37af494bbb Mon Sep 17 00:00:00 2001 From: Luis Sanchez Date: Fri, 7 Feb 2025 22:33:11 -0500 Subject: [PATCH] Revert to openai provider check --- litellm/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 8110b4cc3f..3c04da0266 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2812,8 +2812,8 @@ def get_optional_params( # noqa: PLR0915 or "tools" in non_default_params ): if ( - custom_llm_provider == "ollama" - or custom_llm_provider != "text-completion-openai" + custom_llm_provider != "openai" + and custom_llm_provider != "text-completion-openai" and custom_llm_provider != "azure" and custom_llm_provider != "vertex_ai" and custom_llm_provider != "anyscale"