From 36a5f8a7e25c950a7be575687027484f561bf2cb Mon Sep 17 00:00:00 2001 From: Esteban Zeller Date: Tue, 24 Feb 2026 11:49:28 -0300 Subject: [PATCH] Fix response_format parameter inclusion in validation --- litellm/llms/gradient_ai/chat/transformation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/litellm/llms/gradient_ai/chat/transformation.py b/litellm/llms/gradient_ai/chat/transformation.py index e115859c586..ba73ee103b6 100644 --- a/litellm/llms/gradient_ai/chat/transformation.py +++ b/litellm/llms/gradient_ai/chat/transformation.py @@ -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(