diff --git a/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageStatistics/ChatMessageStatistics.svelte b/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageStatistics/ChatMessageStatistics.svelte
index 4d8b1da2b..51cc4b029 100644
--- a/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageStatistics/ChatMessageStatistics.svelte
+++ b/tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageStatistics/ChatMessageStatistics.svelte
@@ -124,6 +124,11 @@
);
let formattedAgenticTotalTime = $derived(formatPerformanceTime(agenticTotalTimeMs));
+
+ const fixedFormatter = new Intl.NumberFormat(undefined, {
+ maximumFractionDigits: 2,
+ minimumFractionDigits: 2
+ });
{#snippet viewButton(opts: {
@@ -223,14 +228,14 @@
class="bg-transparent"
icon={Gauge}
tooltipLabel="Generation speed"
- value="{tokensPerSecond.toFixed(2)} t/s"
+ value="{fixedFormatter.format(tokensPerSecond)} t/s"
/>
{:else if activeView === ChatMessageStatsView.TOOLS && hasAgenticStats}
{:else if activeView === ChatMessageStatsView.SUMMARY && hasAgenticStats}
{/if}