diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 49d5fa410..c63fd0243 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -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();