From 88aa3ff451e5d616d3c6f77826673041ae3da8b9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 14:08:42 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/inference/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/backend/core/inference/tools.py b/studio/backend/core/inference/tools.py index 8ce8f628cc..b27a75cde1 100644 --- a/studio/backend/core/inference/tools.py +++ b/studio/backend/core/inference/tools.py @@ -182,7 +182,9 @@ def _fetch_page_text(url: str, max_chars: int = 4000, timeout: int = 10) -> str: return "" -def _web_search(query: str, url: str = "", max_results: int = 5, timeout: int = _EXEC_TIMEOUT) -> str: +def _web_search( + query: str, url: str = "", max_results: int = 5, timeout: int = _EXEC_TIMEOUT +) -> str: """Search the web using DuckDuckGo and return formatted results. If *url* is provided, fetches that page directly (skips search).