style: ruff format handler.py

This commit is contained in:
tsushanth 2026-07-17 16:30:40 -07:00
parent c6641dac34
commit 3610a3f62a
No known key found for this signature in database

View file

@ -302,9 +302,7 @@ class WebSearchInterceptionLogger(CustomLogger):
# legitimately points at a client-side tool we left alone.
if "tool_choice" in kwargs:
rewritten_names = collect_rewritten_tool_names(tools)
kwargs["tool_choice"] = rewrite_web_search_tool_choice(
kwargs["tool_choice"], rewritten_names
)
kwargs["tool_choice"] = rewrite_web_search_tool_choice(kwargs["tool_choice"], rewritten_names)
if kwargs.get("stream"):
verbose_logger.debug("WebSearchInterception: deployment hook converting stream=True to stream=False")
@ -479,9 +477,7 @@ class WebSearchInterceptionLogger(CustomLogger):
# has to be applied here too (issue #30822).
if "tool_choice" in kwargs:
rewritten_names = collect_rewritten_tool_names(tools)
kwargs["tool_choice"] = rewrite_web_search_tool_choice(
kwargs["tool_choice"], rewritten_names
)
kwargs["tool_choice"] = rewrite_web_search_tool_choice(kwargs["tool_choice"], rewritten_names)
# Also convert here for direct callers that bypass the deployment hook.
if kwargs.get("stream"):