diff --git a/src/lib/components/chat/Messages/Citations.svelte b/src/lib/components/chat/Messages/Citations.svelte index b6385e2b2..c4ed12817 100644 --- a/src/lib/components/chat/Messages/Citations.svelte +++ b/src/lib/components/chat/Messages/Citations.svelte @@ -89,9 +89,9 @@ /> {#if _citations.length > 0} -
+
{#if _citations.length <= 3} -
+
{#each _citations as citation, idx} - {#if idx === 0}, {/if} -
+
+ {citation.source.name} +
+ {/each} - {:else} - {#each _citations.slice(0, 1) as citation, idx} -
- -
- {/each} - {/if} +
- {_citations.length - - (_citations.length > 1 && - _citations - .slice(0, 2) - .reduce((acc, citation) => acc + citation.source.name.length, 0) <= 50 - ? 2 - : 1)} + {_citations.length - 2} {$i18n.t('more')}
@@ -189,27 +159,25 @@ {/if}
-
-
+
+
{#each _citations as citation, idx} -
- -
+ {/if} +
+ {citation.source.name} +
+ {/each}
diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index d3e9b03fd..6db343b68 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -520,7 +520,7 @@ {@const status = ( message?.statusHistory ?? [...(message?.status ? [message?.status] : [])] ).at(-1)} -
+
{#if status?.done === false}