Consider the following diff: [code] In one sentence, describe the change. Then: decide…
- User
Consider the following diff:
diff --git forkSrcPrefix/src/lib/components/Message.svelte forkDstPrefix/src/lib/components/Message.svelte index 13601de1148ece66608bdddb74d4b7ae0e64460f..51af4df0d1cbb689d8f74b0f879daf976f3b14a9 100644 --- forkSrcPrefix/src/lib/components/Message.svelte +++ forkDstPrefix/src/lib/components/Message.svelte @@ -9,11 +9,6 @@ // Copy functionality state let copySuccess = $state(false); - // Format token count with comma separator - function formatTokens(count: number): string { - return count.toLocaleString(); - } - // Markdown plugins const plugins = [gfmPlugin()]; @@ -79,15 +74,15 @@ {#if generation} <div class="token-counter"> - <span aria-label="Input tokens">{formatTokens(generation.inputTokens)}</span> + <span aria-label="Input tokens">{generation.inputTokens.toLocaleString()}</span> <span class="token-arrow" aria-label="produces">→</span> {#if generation.reasoningTokens} <span aria-label="Reasoning tokens"> - {formatTokens(generation.reasoningTokens)} + {generation.reasoningTokens.toLocaleString()} </span> <span aria-label="plus">+</span> {/if} - <span aria-label="Output tokens">{formatTokens(generation.outputTokens!)}</span> + <span aria-label="Output tokens">{generation.outputTokens.toLocaleString()}</span> </div> {/if} </div>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.