Fix response_format parameter inclusion in validation

This commit is contained in:
Esteban Zeller 2026-02-24 11:49:28 -03:00 • committed by GitHub
parent 9ba9d870c8
commit 36a5f8a7e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ class GradientAIConfig(OpenAILikeChatConfig):
"tools",
"tool_choice",
"parallel_tool_calls",
"response_format"
"response_format",
]
return supported_params
@ -142,9 +142,6 @@ class GradientAIConfig(OpenAILikeChatConfig):
for param, value in non_default_params.items():
if param in supported_openai_params:
optional_params[param] = value
elif param in ["tools", "tool_choice", "parallel_tool_calls"]:
# Allow explicitly if the params definition changes
optional_params[param] = value
elif not drop_params:
from litellm.utils import UnsupportedParamsError
raise UnsupportedParamsError(