From ab85e4522020f478f68cbba195331a53e03bea7f Mon Sep 17 00:00:00 2001 From: Vigilans Date: Tue, 21 Apr 2026 22:21:14 +0800 Subject: [PATCH] style: run black on adapters/transformation.py and main.py --- .../experimental_pass_through/adapters/transformation.py | 4 +++- litellm/main.py | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py index 3f85a4efcc3..ef763971cfb 100644 --- a/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py +++ b/litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py @@ -1054,7 +1054,9 @@ class LiteLLMAnthropicMessagesAdapter: wst_dict = cast(Dict[str, Any], wst) allowed = wst_dict.get("allowed_domains") if allowed: - web_search_options.setdefault("filters", {})["allowed_domains"] = allowed + web_search_options.setdefault("filters", {})[ + "allowed_domains" + ] = allowed new_kwargs["web_search_options"] = web_search_options # type: ignore if not regular_tools: diff --git a/litellm/main.py b/litellm/main.py index fa123c8091e..655e94e70b1 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -989,8 +989,7 @@ def responses_api_bridge_check( web_search_options is not None and model_info.get("mode") != "responses" and model_info.get("supports_web_search") is True - and "/v1/responses" - in (model_info.get("supported_endpoints") or []) + and "/v1/responses" in (model_info.get("supported_endpoints") or []) ): model_info["mode"] = "responses"