|
@@ -74,9 +74,15 @@
|
|
|
<div class="">
|
|
|
{#if attributes?.type === 'reasoning'}
|
|
|
{#if attributes?.done === 'true' && attributes?.duration}
|
|
|
- {$i18n.t('Thought for {{DURATION}}', {
|
|
|
- DURATION: dayjs.duration(attributes.duration, 'seconds').humanize()
|
|
|
- })}
|
|
|
+ {#if attributes.duration < 60}
|
|
|
+ {$i18n.t('Thought for {{DURATION}} seconds', {
|
|
|
+ DURATION: attributes.duration
|
|
|
+ })}
|
|
|
+ {:else}
|
|
|
+ {$i18n.t('Thought for {{DURATION}}', {
|
|
|
+ DURATION: dayjs.duration(attributes.duration, 'seconds').humanize()
|
|
|
+ })}
|
|
|
+ {/if}
|
|
|
{:else}
|
|
|
{$i18n.t('Thinking...')}
|
|
|
{/if}
|