Repository navigation
Conversation
deepseek/deepseek-v4.1-flash-fast, claude-sonnet-5-5, gpt-6.1-sol and inclusionai/ling-3.1-flash:free were absent from MODEL_COSTS, so they silently displayed a zero request cost. Add reviewed prices, apply the DeepSeek V4 peak window to v4.1-flash-fast, and refresh both fixtures.
pierreraby
left a comment
There was a problem hiding this comment.
Verified: all four prices match the official page (https://commandcode.ai/docs/resources/pricing-limits) read independently just now — v4.1-flash-fast 0.16/0.58/0.016 off-peak (+ time-priced set), Sonnet 5.5 2/10/0.2/2.5, GPT-6.1 Sol 2/10/0.1/2.5 with the 272K tier, Ling 3.1 Flash free. Local on 755e031: typecheck, test-pricing 9/9, test-cost 9/9, test-models 28/28, prettier clean. Leaving the merge to the maintainers — will merge tomorrow if no objections.
|
Pushed a CHANGELOG conflict resolution onto your branch (0.7.5 released since your rebase — kept both sections, no content change). CI should restart on the new head. |
|
Correction to my previous comment: your branch lives on your fork, which I can't push to — so no CI restart happened there. Instead I carried your change forward as #139 (identical content, CHANGELOG conflict with 0.7.5 resolved, verified green locally). The stray upstream ref I created by mistake is deleted. Sorry for the confusion — and thanks again for the PR. |
Problem
Four models advertised by
/provider/v1/modelswere absent fromMODEL_COSTS, soindex.tsfell back toZERO_MODEL_COSTand pi displayed no request cost for them (the powerline footer hides the cost segment when it is zero). The clearest symptom: DeepSeek V4.1 Flash Fast (CC) showed no cost at all.deepseek/deepseek-v4.1-flash-fastclaude-sonnet-5-5gpt-6.1-solinclusionai/ling-3.1-flash:freeRoot cause
The automated catalog syncs (#126, #128) add model metadata to
src/commandcode-catalog.ts, but pricing is intentionally manual.deepseek/deepseek-v4.1-flash-fastwas added to the catalog by #126 without a matchingsrc/pricing.tsentry. The pricing test only comparesMODEL_COSTSagainst a local fixture, so the drift stayed green.Changes
claude-sonnet-5-5:2 / 10 / 0.2 / 2.5gpt-6.1-sol:2 / 10 / 0.1 / 2.5, tier above 272K4 / 15 / 0.2 / 5deepseek/deepseek-v4.1-flash-fast: off-peak0.16 / 0.58 / 0.016 / 0inclusionai/ling-3.1-flash:free: freedeepseek/deepseek-v4.1-flash-fasttoDEEPSEEK_V4_TIME_PRICED_MODELS; the pricing page gives it the same weekday01–04/06–10UTC peak window (×2), matchingdeepseek-v4.1-flash.PRICING_LAST_VERIFIEDto2026-10-05and refresh both fixtures (85 models).Unreleasedchangelog.Tests
npm run test:pricing,npm run test:cost,npm run test:models,npm run test:unit,npm run typecheck,npm run format:check,git diff --check— pass.npm testpasses functionally. Note:tests/test-pi-local.mjshas a pre-existing flaky teardown (Unknown/ENOTEMPTYwhen removing the temporary HOME, line 1205) that fails intermittently independently of this change; reruns can exit 0. Happy to file a separate issue if useful.