diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index d71f3fd3f..6aaa01b89 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -444,12 +444,10 @@ })} {/if} {/each} - {/if} {#if message.citations} -
-
+
{#each message.citations.reduce((acc, citation) => { citation.document.forEach((document, index) => { const metadata = citation.metadata?.[index]; @@ -467,18 +465,19 @@ return acc; }, []) as citation, idx}
-
- [{idx + 1}] -
-
{/each}