diff --git a/cptr/frontend/src/lib/components/chat/AssistantMessage.svelte b/cptr/frontend/src/lib/components/chat/AssistantMessage.svelte index 641e031..efacddb 100644 --- a/cptr/frontend/src/lib/components/chat/AssistantMessage.svelte +++ b/cptr/frontend/src/lib/components/chat/AssistantMessage.svelte @@ -16,9 +16,9 @@ import { t } from '$lib/i18n'; interface Props { - content: string; - meta?: Record | null; - done: boolean; + content: string; + meta?: Record | null; + done: boolean; output: any[] | null; usage: Record | null; chatId: string | null; @@ -35,9 +35,9 @@ onspeak?: () => void; } let { - content, - meta = null, - done, + content, + meta = null, + done, output, usage, chatId, @@ -61,7 +61,7 @@ let showUsageTooltip = $state(false); let collapsedFiles = $state>({}); let textareaEl: HTMLTextAreaElement; - const isTimer = $derived(meta?.timer === true); + const isTimer = $derived(meta?.internal === true && meta?.type === 'timer'); async function startEdit() { edit = true; @@ -454,7 +454,10 @@
{#if isTimer} -
Timer
+
+ Timer + +
{/if} {#if !done && (!output || output.length === 0)}
None: parent_id=parent_id, model=target.full_model_id, done=False, - meta={"timer": True}, + meta={"internal": True, "type": "timer"}, created_at=now_ms(), ) await Chat.update_current_message(parent.id, assistant_msg.id, now_ms())