mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
commit
11bb1a6f7d
@ -44,10 +44,8 @@ def search_searxng(
|
|||||||
"q": query,
|
"q": query,
|
||||||
"format": "json",
|
"format": "json",
|
||||||
"pageno": 1,
|
"pageno": 1,
|
||||||
"results_per_page": count,
|
|
||||||
"language": language,
|
"language": language,
|
||||||
"time_range": time_range,
|
"time_range": time_range,
|
||||||
"engines": "",
|
|
||||||
"categories": categories,
|
"categories": categories,
|
||||||
"theme": "simple",
|
"theme": "simple",
|
||||||
"image_proxy": 0,
|
"image_proxy": 0,
|
||||||
@ -81,5 +79,5 @@ def search_searxng(
|
|||||||
SearchResult(
|
SearchResult(
|
||||||
link=result["url"], title=result.get("title"), snippet=result.get("content")
|
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