Repository navigation
feat(catalog): source tiers, context and API-only models from the official pricing page - #351
Merged
Merged
Conversation
…icial pricing page Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2:ses_dbd93db0effeEfWTGgb4u7WLz9
Workit-Session: ses_dbdda4daaffexKPxS5Z9LKhpI2:ses_dbd93db0effeEfWTGgb4u7WLz9
Contributor
|
🎉 This PR is included in version 0.13.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
Catalog sync now reads the model rows embedded in the official pricing page (https://commandcode.ai/docs/resources/pricing-limits). Before, it read only the HTML table and then took long-context tiers from models.dev.
src/costs-docs.ts): decodes the Next.jsself.__next_f.pushflight chunks and parses therowsarray (id,name,category,contextWindow,caps,deal,tiers/contextTiers)./modelsitems by exact ID, then by vendor-less ID ignoring case and punctuation, then by display name. A key shared by two rows never matches. The page has 115 rows and they join all 111 live IDs. Availability still uses exact-ID matching.rates(deal prices), neverlistRates, and includescacheWrite. The first band is the base cost. Each later band becomes a context tier above the previous band's upper bound. A band billed like the previous one adds no tier.contextWindowsets the catalog context. The livecontext_lengthis a cross-check: a mismatch writes a warning to the log and the step summary.manifest.review.apiOnly. No hardcoded IDs or rows.$GITHUB_STEP_SUMMARY.docs/specs/2026-09-20-catalog-freshness.mdnow allows official-source API-only synthesis and documents the rules above.Result (
bun run sync -- --remote, command-code 1.94.0)/modelsset.review.apiOnlylistsminimax/minimax-m4,recursive/flint-v1.1:free,reflection/beam-contributor:free,subquadratic/subq-savant-1.4andthinkingmachines/inkling-2-small.claude-sonnet-4-6is flat 3/15 at 1M (200K tier removed).gpt-5.5is flat 5/30 at 400K (272K tier removed). MiniMax M3 is 0.3/1.2. Qwen3.7-Max has no 32K/128K tiers. subq has a 4,194,304-token context. flint-v1.1:free and beam-contributor:free cost $0. flint-v1.0 is absent.context_length, so no cross-check warning was raised.Checks
bun run checkpasses (335 tests).