Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

alex-mcgovern
Copy link
Collaborator

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants