mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
fix: web search
This commit is contained in:
parent
4fea55bac3
commit
9e48aeca45
@ -770,6 +770,11 @@
|
|||||||
if (model?.info?.meta?.knowledge ?? false) {
|
if (model?.info?.meta?.knowledge ?? false) {
|
||||||
files.push(...model.info.meta.knowledge);
|
files.push(...model.info.meta.knowledge);
|
||||||
}
|
}
|
||||||
|
if (responseMessage?.files) {
|
||||||
|
files.push(
|
||||||
|
...responseMessage?.files.filter((item) => ['web_search_results'].includes(item.type))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
eventTarget.dispatchEvent(
|
eventTarget.dispatchEvent(
|
||||||
new CustomEvent('chat:start', {
|
new CustomEvent('chat:start', {
|
||||||
@ -1005,6 +1010,11 @@
|
|||||||
if (model?.info?.meta?.knowledge ?? false) {
|
if (model?.info?.meta?.knowledge ?? false) {
|
||||||
files.push(...model.info.meta.knowledge);
|
files.push(...model.info.meta.knowledge);
|
||||||
}
|
}
|
||||||
|
if (responseMessage?.files) {
|
||||||
|
files.push(
|
||||||
|
...responseMessage?.files.filter((item) => ['web_search_results'].includes(item.type))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user