mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
style(router): format common_utils.py with ruff format
This commit is contained in:
parent
0c951a5ccb
commit
c3fb85557c
1 changed files with 2 additions and 6 deletions
|
|
@ -233,12 +233,8 @@ def filter_web_search_deployments(
|
|||
return healthy_deployments
|
||||
|
||||
tools: Final = request_kwargs.get("tools") or []
|
||||
is_web_search_request: Final = any(
|
||||
isinstance(tool, dict) and _is_web_search_tool(tool) for tool in tools
|
||||
)
|
||||
is_web_fetch_request: Final = any(
|
||||
isinstance(tool, dict) and _is_web_fetch_tool(tool) for tool in tools
|
||||
)
|
||||
is_web_search_request: Final = any(isinstance(tool, dict) and _is_web_search_tool(tool) for tool in tools)
|
||||
is_web_fetch_request: Final = any(isinstance(tool, dict) and _is_web_fetch_tool(tool) for tool in tools)
|
||||
|
||||
if not is_web_search_request and not is_web_fetch_request:
|
||||
return healthy_deployments
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue