mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
fix: web search
This commit is contained in:
parent
4fea55bac3
commit
9e48aeca45
1 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue