Skip to content

webui: Use toLocaleString() format consistently across chat message statistics - #27990

Open
grivera64 wants to merge 2 commits into
ggml-org:masterfrom
grivera64:enhancement/format-chat-message-stats
Open

webui: Use toLocaleString() format consistently across chat message statistics#27990
grivera64 wants to merge 2 commits into
ggml-org:masterfrom
grivera64:enhancement/format-chat-message-stats

Conversation

@grivera64

Copy link
Copy Markdown

Overview

This PR updates tools/ui/src/lib/components/app/chat/ChatMessages/ChatMessageStatistics/ChatMessageStatistics.svelte to use consistent toLocaleString() formatting across the following stats:

  • tokensPerSecond
  • agenticTimings!.toolCallsCount
  • agenticToolsPerSecond
  • agenticTimings!.turns
  • promptTokens
  • promptTokensPerSecond

It also adds a new fixedFormatter to the top of the file that is used to format stats with fraction digits.

Closes #27989

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: I used AI to help navigate the codebase to find the .svelte file where chat message statistics are located.

@grivera64
grivera64 requested a review from a team as a code owner August 29, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webui: Use toLocaleString() format consistently across chat message statistics

1 participant