summaryrefslogtreecommitdiff
path: root/src/ollama_web/tools/search.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ollama_web/tools/search.py')
-rw-r--r--src/ollama_web/tools/search.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ollama_web/tools/search.py b/src/ollama_web/tools/search.py
index 0af2a3e..761f182 100644
--- a/src/ollama_web/tools/search.py
+++ b/src/ollama_web/tools/search.py
@@ -22,9 +22,7 @@ def web_search(query: str, max_results: int | None = None) -> list[dict[str, str
return []
limit = (
- max_results
- if max_results is not None and max_results > 0
- else settings.search_max_results
+ max_results if max_results is not None and max_results > 0 else settings.search_max_results
)
results: list[dict[str, str]] = []