mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
fix: web search
This commit is contained in:
parent
4fea55bac3
commit
9e48aeca45
@ -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 New Issue
Block a user