mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-18 07:25:53 +08:00
fix web results all getting the same source id when bypassing embedding and retrieval
This commit is contained in:
parent
193a927aba
commit
2729d8aab4
@ -395,12 +395,13 @@ async def chat_web_search_handler(
|
||||
}
|
||||
)
|
||||
elif results.get("docs"):
|
||||
for doc_idx, doc in enumerate(results["docs"]):
|
||||
files.append(
|
||||
{
|
||||
"docs": results.get("docs", []),
|
||||
"docs": [doc],
|
||||
"name": searchQuery,
|
||||
"type": "web_search",
|
||||
"urls": results["filenames"],
|
||||
"urls": [results["filenames"][doc_idx]],
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user