|
@@ -434,10 +434,10 @@
|
|
{:else if message.content === ''}
|
|
{:else if message.content === ''}
|
|
<Skeleton />
|
|
<Skeleton />
|
|
{:else}
|
|
{:else}
|
|
- {#each tokens as token}
|
|
|
|
|
|
+ {#each tokens as token, tokenIdx}
|
|
{#if token.type === 'code'}
|
|
{#if token.type === 'code'}
|
|
<CodeBlock
|
|
<CodeBlock
|
|
- id={message.id}
|
|
|
|
|
|
+ id={`${message.id}-${tokenIdx}`}
|
|
lang={token.lang}
|
|
lang={token.lang}
|
|
code={revertSanitizedResponseContent(token.text)}
|
|
code={revertSanitizedResponseContent(token.text)}
|
|
/>
|
|
/>
|