We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e877093 commit 305efcaCopy full SHA for 305efca
src/lib/components/messages/preview-message.svelte
@@ -41,7 +41,7 @@
41
{/if}
42
43
<div class="flex w-full flex-col gap-4">
44
- {#if message.experimental_attachments}
+ {#if message.experimental_attachments && message.experimental_attachments.length > 0}
45
<div class="flex flex-row justify-end gap-2">
46
{#each message.experimental_attachments as attachment (attachment.url)}
47
<PreviewAttachment {attachment} />
@@ -80,7 +80,7 @@
80
'rounded-xl bg-primary px-3 py-2 text-primary-foreground': message.role === 'user'
81
})}
82
>
83
- <Markdown md={message.content} />
+ <Markdown md={part.text} />
84
</div>
85
86
{:else if mode === 'edit'}
0 commit comments