diff --git a/litellm/utils.py b/litellm/utils.py index 98a9c34b47..f7808d7125 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -3006,7 +3006,7 @@ def get_optional_params( # noqa: PLR0915 or "tools" in non_default_params ): if ( - custom_llm_provider == "ollama" + custom_llm_provider != "openai" and custom_llm_provider != "text-completion-openai" and custom_llm_provider != "azure" and custom_llm_provider != "vertex_ai"