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"