fix: web search

This commit is contained in:
Timothy J. Baek 2024-07-17 15:39:50 +02:00
parent 4fea55bac3
commit 9e48aeca45

View File

@ -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();