diff --git a/src/lib/components/chat/MessageInput/Documents.svelte b/src/lib/components/chat/MessageInput/Documents.svelte index b38cc5f1b..4e93d2155 100644 --- a/src/lib/components/chat/MessageInput/Documents.svelte +++ b/src/lib/components/chat/MessageInput/Documents.svelte @@ -143,7 +143,11 @@ {/each} - {#if prompt.split(' ')?.at(0)?.substring(1).startsWith('https://www.youtube.com')} + {#if prompt + .split(' ') + .some((s) => s.substring(1).startsWith('https://www.youtube.com') || s + .substring(1) + .startsWith('https://youtu.be'))}