This commit is contained in:
Timothy Jaeryang Baek
2025-09-07 05:17:38 +04:00
parent cd5e2be27b
commit 6dc0df2473
4 changed files with 33 additions and 8 deletions

View File

@@ -643,10 +643,12 @@
<div>
<div class="chat-{message.role} w-full min-w-full markdown-prose">
<div>
<StatusHistory
statusHistory={message?.statusHistory}
expand={message?.content === ''}
/>
{#if model?.info?.meta?.capabilities?.status_updates ?? true}
<StatusHistory
statusHistory={message?.statusHistory}
expand={message?.content === ''}
/>
{/if}
{#if message?.files && message.files?.filter((f) => f.type === 'image').length > 0}
<div class="my-1 w-full flex overflow-x-auto gap-2 flex-wrap">
@@ -732,7 +734,7 @@
</div>
{:else}
<div class="w-full flex flex-col relative" id="response-content-container">
{#if message.content === '' && !message.error && ((message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length === 0 || (message?.statusHistory?.at(-1)?.hidden ?? false))}
{#if message.content === '' && !message.error && ((model?.info?.meta?.capabilities?.status_updates ?? true) ? (message?.statusHistory ?? [...(message?.status ? [message?.status] : [])]).length === 0 || (message?.statusHistory?.at(-1)?.hidden ?? false) : true)}
<Skeleton />
{:else if message.content && message.error !== true}
<!-- always show message contents even if there's an error -->