Unverified Commit 11bb1a6f authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2795 from open-webui/dev

fix
parents 8a94d8a2 61867c15
......@@ -44,10 +44,8 @@ def search_searxng(
"q": query,
"format": "json",
"pageno": 1,
"results_per_page": count,
"language": language,
"time_range": time_range,
"engines": "",
"categories": categories,
"theme": "simple",
"image_proxy": 0,
......@@ -81,5 +79,5 @@ def search_searxng(
SearchResult(
link=result["url"], title=result.get("title"), snippet=result.get("content")
)
for result in sorted_results
for result in sorted_results[:count]
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment