Chore/token usage#21
Open
samwilliamsxc wants to merge 2 commits into
Open
Conversation
Per-call cost is now usage-based (scales with data read/written), so a single fixed per-endpoint cost no longer applies. Rename the OpenAPI extension x-token-cost → x-average-token-cost, set values to TBD pending real averages, and relabel the generated "Token cost" column → "Average token cost". Rewrite rate-limits.md for the new model: 100k default bucket, advisory metering (depleted bucket returns a token_warning, not a 429), server_busy, monthly per-license pool, extended-access unthrottled. Reconcile the same facts in openapi.yaml (meta schema + error enum), responses-and-errors, restricted, and the guides/examples that hardcoded the old fixed-cost model. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge the whoami endpoint from main and populate the previously-TBD x-average-token-cost values from the measured per-endpoint averages (avg_total_kb, used as-is since 1 token ≈ 1 KB). Welcome = 0 (uncharged), single-anchor GET and whoami = 1. Regenerated all reference tables + README. Conflicts resolved: openapi.yaml/getting-started.md kept both sides (whoami additions + the average-cost rework); README.md and reference/users.md regenerated from the merged spec. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Staging this for release on 7/27 |
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.
No description provided.