Antigravity's gemini-4-argon-high, gemini-4-carbon-high and
claude-opus-5-5-high showed "price unknown". pricedNamesTo, the list of
ids ListPrice, MakerPrice and PricedName (Usage, the Requests ledger,
Sessions) look a model up by, read an effort off an id only when it
named grok- (#224): for any other id it returned before the effort
pattern, so the base model (gemini-4-argon, $2/$10 on models.dev) was
never tried. The reporter's claim is right.
effortBase now reads the effort off any id, with no regexp (every model
of every provider's list is priced on each Providers poll): -minimal,
-low, -medium, -high, -xhigh, and Antigravity's -extra-high and
-extra-low. The id's own name is still tried first, so a catalog id
that names an effort keeps its own price (o3-mini-high, nano-gpt's
gemini-3.1-pro-preview-high). Not read: -max and -none (gpt-5.1-codex-max,
qwen3.8-max are models at prices of their own), a fast id
(grok-4.7-low-fast), and a base with no digit in its last part
(mistral-medium, vision-medium, claw-high), so a size word is not taken
for an effort. Checked against every model id in the bundled
models.dev catalog: the ids that end in an effort word with a digit in
the base are the same model at an effort (o3-mini-high/low,
gemini-3.1-pro-preview-high/low, gpt-5.3-codex-xhigh). The Grok window
pattern still runs only on ids naming grok-.
Tests: TestEffortIDPricedAsItsModel (new) prices the reporter's three
ids, each other effort word, upper case and a google/ prefix through
MakerPrice, an Antigravity ListPrice and another provider's ListPrice,
keeps o3-mini-high's own price, and leaves gpt-5.1-codex-max,
-none, vision-medium, mistral/vision-high, -high-fast and -ultra
unpriced. TestGrokEffortListPrice: gpt-6-astra-high, unpriced before
because only Grok's ids were read, is now priced as gpt-6-astra, and
cursor-grok-4.7-high as grok-4.7 (the catalog already prices
cursor-grok-4.7 as grok-4.7, renamed).
Run (on mote, mote-run):
- old models.go with the new tests: TestEffortIDPricedAsItsModel FAIL,
e.g. MakerPrice("gemini-4-carbon-high") = {Input:0 ...}, false; want
gemini-4-carbon's {Input:2 Output:10 CacheRead:0.1}; same for
claude-opus-5-5-high and the Antigravity ListPrice.
- new code: go test -tags nogui ./internal/provider/ ./internal/sessions/
./internal/catalog/ ok.
- with this Mac's real models.dev cache (~/.cache/magpie/models.json
copied into a scratch test, not committed): Antigravity's
ListPrice/EffectivePrice of gemini-4-argon-high and
gemini-4-carbon-high $2/$10/$0.1, claude-opus-5-5-high
$4/$20/$0.2/$5; gpt-5.1-codex-max and mistral-medium unpriced;
PricedName(o3-mini-high) o3-mini.
- gofmt -l: nothing. go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./..., go build, GOOS=linux go build -tags nogui,
GOOS=windows go build: ok.
- the full go test -tags nogui ./... was not run before this push
(shipped at once); it is run on mote after it.
Not tried: the reporter's own usage log, or the GUI's Usage page.