From 149bd6a1c2eadc946bc70bf8635730be424c6a68 Mon Sep 17 00:00:00 2001 From: Tai An Date: Fri, 24 Apr 2026 06:19:03 -0700 Subject: [PATCH] fix(vertex_ai/anthropic): stop stripping output_config from Vertex Anthropic requests Vertex AI's Anthropic raw-predict endpoint accepts and forwards the output_config field (used for Claude 4.7 task_budget / effort controls) without modification. Unconditionally dropping it silently disabled Claude 4.7's effort + task_budget feature when routing via LiteLLM. Fixes #26423 --- .../vertex_ai_partner_models/anthropic/transformation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py b/litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py index 504914c4796..78418799eb1 100644 --- a/litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py +++ b/litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py @@ -108,9 +108,6 @@ class VertexAIAnthropicConfig(AnthropicConfig): # VertexAI doesn't support output_format parameter, remove it if present data.pop("output_format", None) - # VertexAI doesn't support output_config parameter, remove it if present - data.pop("output_config", None) - tools = optional_params.get("tools") tool_search_used = self.is_tool_search_used(tools) auto_betas = self.get_anthropic_beta_list(