fix(pricing): alias grok-proxy to Grok Build - #1123
Merged
Merged
Conversation
Recent Grok Build CLI logs emit grok-proxy instead of grok-build, so those rows were dropped from spend tiles. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Alias the Grok CLI log slug
grok-proxytogrok-build-0.1so recent Grok Build usage shows up in spend tiles and Total Spend.What was happening
GrokLogUsageScannerattributesinference_donerows via the last model id seen for that PID.grok-buildandgrok-code-fast-1already alias togrok-build-0.1. Recent Grok Build CLI sessions loggrok-proxyinstead, so Today/Yesterday (and Total Spend for those days) went empty while Weekly quota still worked. Oldergrok-builddays still filled Last 30 Days.What this changes
grok-proxy→grok-build-0.1(same rates asgrok-build: $1 input / $2 output per million).testGrokCLIModelAliasessogrok-proxyresolves to the same rates asgrok-build-0.1.updated_atso installed apps pick the feed up within about an hour. No app release needed.Heads-up
grok-proxy. This only affects Grok Build CLI users whose logs switched slugs.grok-proxyever becomes a generic proxy id for other models, this alias would underprice those rows.Tests
PricingBundledResourceTests/testGrokCLIModelAliasesFixes #1119
Made with Cursor