mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
style: run black on adapters/transformation.py and main.py
This commit is contained in:
parent
fe555bd08f
commit
ab85e45220
2 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue