Conversation
Add pricing entries for `meta/muse-spark-1.3`, `meta/muse-spark-1.3-contributor`, and other models synced in 1.44.0. Regenerate test fixtures and update pricing test assertions.
Star-233
force-pushed
the
fix/pricing-muse-spark-1.3
branch
from
September 5, 2026 09:48
e6b547c to
44ff820
Compare
Owner
|
Thanks for the pricing contribution. Merged #93 now covers these models with refreshed fixtures and explicit regression tests, after full green CI. Reviewed the current official pricing page: Qwen 0902 and Gemini 3.8 cache-write rates are zero, so those proposed values were corrected during consolidation. Closing as superseded, not discarding the fix. |
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.
Why
Addresses #83 (Bug 1: pricing).
meta/muse-spark-1.3ormeta/muse-spark-1.3-contributorrecorded.00cost in session metrics because these models were missing fromMODEL_COSTS.google/gemini-3.8-flash,Qwen/Qwen3.8-Max-0902,meituan/LongCat-2.0:free) were also missing pricing entries.Cause
In
src/pricing.ts,MODEL_COSTSwas not updated when the 1.44.0 catalog was merged.index.tsfell back toZERO_MODEL_COST, silently reporting zero usage cost for unlisted models.Fix
src/pricing.ts:meta/muse-spark-1.3:.25/.25/.15meta/muse-spark-1.3-contributor:.10/.20/.002google/gemini-3.8-flash:.50/.50/.15/.08334Qwen/Qwen3.8-Max-0902:.00/.00/.25/.50meituan/LongCat-2.0:free:.00(added tofreeModels)tests/fixtures/commandcode-pricing.jsonandtests/fixtures/commandcode-model-ids.json.tests/test-pricing.ts.Verification
npm run test:pricing— 7 tests passnpm run test:unit— 49 tests passnpm run format:check— cleangit diff --check— cleanmeta/muse-spark-1.3-contributorcorrectly calculates non-zero cost matching official rates.