Merge branch 'dev' into fix-9864

This commit is contained in:
Feynman Liang
2025-02-12 13:47:54 -08:00
committed by GitHub
133 changed files with 4335 additions and 1702 deletions

View File

@@ -75,9 +75,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}

View File

@@ -23,6 +23,7 @@
/>
<button
class={showButtonClassName}
type="button"
on:click={(e) => {
e.preventDefault();
show = !show;