mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: web search
This commit is contained in:
@@ -770,6 +770,11 @@
|
||||
if (model?.info?.meta?.knowledge ?? false) {
|
||||
files.push(...model.info.meta.knowledge);
|
||||
}
|
||||
if (responseMessage?.files) {
|
||||
files.push(
|
||||
...responseMessage?.files.filter((item) => ['web_search_results'].includes(item.type))
|
||||
);
|
||||
}
|
||||
|
||||
eventTarget.dispatchEvent(
|
||||
new CustomEvent('chat:start', {
|
||||
@@ -1005,6 +1010,11 @@
|
||||
if (model?.info?.meta?.knowledge ?? false) {
|
||||
files.push(...model.info.meta.knowledge);
|
||||
}
|
||||
if (responseMessage?.files) {
|
||||
files.push(
|
||||
...responseMessage?.files.filter((item) => ['web_search_results'].includes(item.type))
|
||||
);
|
||||
}
|
||||
|
||||
scrollToBottom();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user