refac: tag handling

This commit is contained in:
Timothy Jaeryang Baek
2025-08-06 13:32:28 +04:00
parent e9fb161bcd
commit 2e36540023
2 changed files with 18 additions and 5 deletions
+3 -1
View File
@@ -114,7 +114,9 @@
<div class="">
{#if attributes?.type === 'reasoning'}
{#if attributes?.done === 'true' && attributes?.duration}
{#if attributes.duration < 60}
{#if attributes.duration < 1}
{$i18n.t('Thought for less than a second')}
{:else if attributes.duration < 60}
{$i18n.t('Thought for {{DURATION}} seconds', {
DURATION: attributes.duration
})}