diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index c2ebe59bea..9839dbd413 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -2538,7 +2538,13 @@ const { type, data } = e.detail; if (type === 'web') { - await uploadWeb(data); + if (Array.isArray(data)) { + for (const url of data) { + await uploadWeb(url); + } + } else { + await uploadWeb(data); + } } else if (type === 'youtube') { await uploadYoutubeTranscription(data); } else if (type === 'google-drive') { @@ -2590,7 +2596,13 @@ const { type, data } = e.detail; if (type === 'web') { - await uploadWeb(data); + if (Array.isArray(data)) { + for (const url of data) { + await uploadWeb(url); + } + } else { + await uploadWeb(data); + } } else if (type === 'youtube') { await uploadYoutubeTranscription(data); } diff --git a/src/lib/components/chat/MessageInput/AttachWebpageModal.svelte b/src/lib/components/chat/MessageInput/AttachWebpageModal.svelte index ae6f63ef22..169bddf0d0 100644 --- a/src/lib/components/chat/MessageInput/AttachWebpageModal.svelte +++ b/src/lib/components/chat/MessageInput/AttachWebpageModal.svelte @@ -1,85 +1,77 @@ - -
-
-

- {$i18n.t('Attach Webpage')} -

+ +
+
+
{$i18n.t('Attach Webpage')}
-
-
{ - e.preventDefault(); - submitHandler(); - }} - > -
- -
+
+
+ {$i18n.t('Enter one URL per line.')} +
- +