Revert to openai provider check

This commit is contained in:
Luis Sanchez 2025-02-07 22:33:11 -05:00 committed by GitHub
parent 4ffa9e2fec
commit d427ba5438
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"