Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

feat: format token usage with "compact" notation #238

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

alex-mcgovern
Copy link
Contributor

Uses compact notation when displaying token usage, so the numbers don't become hard to parse/work with in the UI.

Screenshot 2025-01-31 at 9 02 20 AM

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 13069650094

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 73.312%

Totals Coverage Status
Change from base Build 13057422779: -0.03%
Covered Lines: 772
Relevant Lines: 987

💛 - Coveralls

@alex-mcgovern alex-mcgovern merged commit 9911a7a into main Jan 31, 2025
7 of 8 checks passed
@alex-mcgovern alex-mcgovern deleted the feat--format-token-usage-with-"compact"-notation branch January 31, 2025 09:25
@jtenniswood
Copy link

Adding comers would help readability (eg 11,928). Maybe for the sake of space, it could be 11k, 1.2m.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants