From 919d4657fc05f343880765a7f82e2058c7f017fa Mon Sep 17 00:00:00 2001 From: giulio-leone Date: Thu, 5 Mar 2026 14:19:15 +0100 Subject: [PATCH] fix(websearch): downgrade max_tokens adjustment log level Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- litellm/integrations/websearch_interception/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/integrations/websearch_interception/handler.py b/litellm/integrations/websearch_interception/handler.py index 9238e530e9c..82121f75e41 100644 --- a/litellm/integrations/websearch_interception/handler.py +++ b/litellm/integrations/websearch_interception/handler.py @@ -455,7 +455,7 @@ class WebSearchInterceptionLogger(CustomLogger): ): if max_tokens <= budget_tokens: adjusted = math.ceil(budget_tokens) + 1024 - verbose_logger.warning( + verbose_logger.info( "WebSearchInterception: max_tokens=%s <= thinking.budget_tokens=%s, " "adjusting to %s to satisfy Anthropic API constraint", max_tokens, budget_tokens, adjusted,