Repository navigation
feat(models): tokens in/out and prices per model, and the account's usage limits - #35
Merged
Merged
Conversation
…t's usage limits
- The model list (Providers & Models) now shows what each model reads and writes
("1M in", "64k out") and its price per million tokens, instead of only the
context size. Vision models are marked as vision (they all read as tools-only).
- pi's catalogue already carries cost and accepted inputs; the connector now
passes them on (languageModelPricing), so the editor's own Language Models
"Pricing" column is filled too. A model with no price in the catalogue shows no
price rather than a made-up "Free".
- Status > Usage limits: NaN's subscription is drawn as bars (used, resets in)
for every metered model with the model in use first, and no longer disappears
when a model from another provider is the one in the chat.
Claude Pro/Max limits are not covered: those windows only arrive in response
headers the connector never sees.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013MVCF6g83vB8dmSjDqo2B2
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…into claude/usage-panel
The test config lists the proposed typings by hand; the pricing fields the model list now sets need theirs too, or the test types stop compiling. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013MVCF6g83vB8dmSjDqo2B2
This branch had an error being deployed
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.
What changes, in one line
The model list shows what each model reads and writes plus its price, the editor's own "Pricing" column is filled, and Status shows NaN's usage limits as bars whichever model is in the chat.
Why
Three things the owner saw missing:
1M inand64k out, and vision models are marked as vision (every model was registered as tools-only, so the Vision filter matched nothing).costper million tokens, but the connector never passed it on, so the Language Models editor's Pricing column was empty.languageModelPricingis now enabled and fed. A model with no price in the catalogue shows none, not "Free".Not covered: Claude Pro/Max limits. Those windows arrive in response headers the connector never sees (
usage-data.tssays so). That would need a separate decision.How was it observed working
Not seen running. I could not build or open the editor here, so the new rows, chips and bars have not been looked at on screen. Please open Chat Settings > Providers & Models > Models, Status, and the Language Models editor before releasing. Cached model lists keep their old (priceless) entries until the next refresh.
Which layer
src/vs/workbench/contrib/picode)extensions/picode)Review workload
experimental, which another session is releasing from: this PR is not merged so it cannot disturb that.cd extensions/picode && node --test test/model-info.test.ts test/usage-data.test.ts test/status-layout.test.ts.Records
Generated by Claude Code