{#if filteredItems.length > 0 || prompt.split(' ')?.at(0)?.substring(1).startsWith('http')}
#
{#each filteredItems as doc, docIdx} {/each} {#if prompt .split(' ') .some((s) => s.substring(1).startsWith('https://www.youtube.com') || s .substring(1) .startsWith('https://youtu.be'))} {:else if prompt.split(' ')?.at(0)?.substring(1).startsWith('http')} {/if}
{/if}