太陽と向日葵 on magpie's Discord: Usage no longer shows what calls through
Devin cost. Two causes, both in what the list gives magpie:
- Every model went with a price of 0 (runtimeModel's cost), and magpie
falls back to models.dev, which has none of Devin's own models (SWE-2,
SWE-1.7 Lightning). Devin lists each paid model's price in
GetCliModelConfigs: field 32 of a config, one per "Input", "Cached input"
and "Output", a float32 in USD per "1M tokens". parsePrices reads it
(fields() now keeps a fixed32's bytes), and listed() gives an entry the
price its variants share, none when they differ. Read from Devin's own
response on 10-15: Opus 5.5 4/20 (cache 0.2), its fast run 8/40, SWE-1.7
Lightning 2.5/12.5, SWE-2 Lightning 1/5, GLM-5.2 1.4/4.4. The Free tier
lists none.
- Devin now files swe-2-high-, -medium- and -max-lightning under SWE-2 at
the High cost tier. A family was free only when every model under it
was, so swe-2 lost free (seen in the owner's plugin-providers.json on
0.1.17), and with it 0.1.16's rule that a used-up day and week don't hold
SWE-2. A family is now judged by the variants variantFor sends it as:
those at an effort and its default.
Run: HOME=<mktemp -d> bun test in packages/devin: 84 pass. prices.test.mjs
uses Devin's real GetCliModelConfigs bytes of 10-15, cut to 11 configs
(testdata/model-configs-1015.bin, no account data in it). Without the
index.mjs change: 3 of its 4 tests red. Broke by hand: the family's free
over every model again turns 2 red; cost back at 0 turns 1 red.
bun scripts/check.mjs devin: ok. Every price above checked by decoding the
full real response with a separate Python reader.
Not run: magpie end to end with this version (magpie reads a plugin's
price from its next commit on).