Skip to content

fix(ui): show used/total in NanoGPT quota display instead of used/remaining#1543

Merged
looplj merged 1 commit into
looplj:unstablefrom
djdembeck:fix/nanogpt-quota-total-display
Apr 30, 2026
Merged

fix(ui): show used/total in NanoGPT quota display instead of used/remaining#1543
looplj merged 1 commit into
looplj:unstablefrom
djdembeck:fix/nanogpt-quota-total-display

Conversation

@djdembeck

Copy link
Copy Markdown
Contributor

Why

The NanoGPT quota display showed (used/remaining) which was misleading because the API's remaining field is the leftover after subtracting used from the total limit, not the total itself.

What

Compute total = used + remaining and display (used/total) instead, matching every other provider in the component.

The NanoGPT API's remaining field is already the leftover (limit minus used),
so displaying it as the denominator showed (500K/995K) instead of (500K/1M).
Compute total = used + remaining for the display, matching every other
provider (Wafer, Synthetic, NeuralWatt, GitHub Copilot) which all show used/total.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the quota display in quota-badges.tsx to show the used amount relative to the total quota instead of the remaining quota. I have no feedback to provide as there were no review comments.

@looplj looplj merged commit 582066f into looplj:unstable Apr 30, 2026
4 checks passed
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.

2 participants