Skip to content

Round fractional token counts in metrics output - #136

Open
med8bra wants to merge 1 commit into
vercel-labs:mainfrom
med8bra:fix/metrics-fractional-tokens
Open

Round fractional token counts in metrics output#136
med8bra wants to merge 1 commit into
vercel-labs:mainfrom
med8bra:fix/metrics-fractional-tokens

Conversation

@med8bra

@med8bra med8bra commented Aug 1, 2026

Copy link
Copy Markdown

Fixes #135

Per-file token counts are a batch total divided by batch size, so they arrive fractional. formatTokens passed values under 1K through unrounded, which overflowed the 8-wide Input/Output columns and broke the table borders.

Long project/model names can still overflow the fixed widths. Not worth a table library. Sizing columns to content would do.

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

@med8bra is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

metrics: Cost & Tokens table borders break on some projects

1 participant