style: run black on adapters/transformation.py and main.py

This commit is contained in:
Vigilans 2026-04-21 22:21:14 +08:00
parent fe555bd08f
commit ab85e45220
2 changed files with 4 additions and 3 deletions

View file

@ -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:

View file

@ -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"