mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 23:13:30 +00:00
commit
11bb1a6f7d
@ -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]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user