Merge pull request #2795 from open-webui/dev

fix
This commit is contained in:
Timothy Jaeryang Baek 2024-06-03 17:07:25 -07:00 committed by GitHub
commit 11bb1a6f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]
]