Repository navigation
fix(collector): price Devin models by their dotted or OpenRouter name, release 0.5.2 - #49
Merged
Merged
Conversation
…n OpenRouter Devin dashes every minor version (deepseek-v4-1-flash, glm-5-3-flash) and litellmModel only dotted gpt-X-Y-, so those rows were stored at $0. LiteLLM also lists them only by reseller (openrouter/, azure_ai/, prism/), never bare. The Devin name now keeps its dashes unless only the dotted form has a price, which leaves claude-fable-5-1 as it was and turns deepseek-v4-1-flash into the deepseek-v4.1-flash that pi and opencode already report. priceFor falls back to the OpenRouter listing, the reseller that passes the vendor's list price through, and antigravity tries it after gemini/. swe-2 and swe-2-max have no public price and keep their warning.
The Devin price fix changes the costs the collector reports, and Devin rows that leave the 14-day window keep whatever they were stored with, so the machines need the new version before 2026-10-11 to reprice the $0 rows of 2026-09-27.
…mol-toml advisories bun audit --production failed on main once GHSA-wq5f-xc86-pv6w, GHSA-68fv-2mgg-jv7q, GHSA-ch52-4w7c-c8xp and GHSA-r4xh-jqrq-34v2 were published, which blocks every pull request and the collector release. bun audit fix moves source-map-js, http-cache-semantics and smol-toml within their ranges. sharp stays at 0.35.4 under miniflare, which pins it exactly even in its latest release, so it joins undici in the miniflare override at the 0.35.5 patch.
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
Devin rows for
deepseek-v4-1-flash,glm-5-3-flash,swe-2andswe-2-maxwere stored withcost_usd0. Measured in D1 on 2026-10-08: about 1.41 billiondeepseek-v4-1-flashtokens across the Mac mini and the MacBook Air at $0, plusglm-5-3-flashandswe-2on the Air.Two things stacked up:
litellmModelonly turnedgpt-X-Y-intogpt-X.Y-, while Devin dashes every minor version.deepseek-v4.1-flashorglm-5.3-flashkey. It lists them only by reseller (openrouter/deepseek/deepseek-v4.1-flash,azure_ai/deepseek-v4.1-flash,prism/...,zai/glm-5.3-flash), and the resellers disagree by up to 7x.Change
priceForinpricing.tstries the bare key, then theopenrouter/<vendor>/<model>listing, since OpenRouter passes the vendor's list price through.claude-fable-5-1stays as it is,gpt-5-6-solstill becomesgpt-5.6-sol, anddeepseek-v4-1-flashbecomes thedeepseek-v4.1-flashthat pi and opencode already report.gemini/.swe-2andswe-2-maxhave no public price anywhere and keep their warning.bun audit --productionfailed on main after four new advisories.bun audit fixclears three of them within range.sharpis pinned exactly by miniflare, even in its latest release, so it joinsundiciin the miniflare override at the 0.35.5 patch.Why now
The collector reports a 14-day window, and a day that leaves it is never repriced. The Air's $0
deepseek-v4-1-flashrows of 2026-09-27 leave the window on 2026-10-11, so both machines need 0.5.2 before then.Verification
mapping.spec.tsandpricing.spec.tscover the four measured Devin names, the Claude regression, the OpenRouter-only antigravity model, and the reseller that must not win.deepseek-v4.1-flashon 2026-09-29 comes to $8.37, and the only warning left isdevin: no price for swe-2-max.bun install --frozen-lockfile,format,lint:slop,check-types,test,test:dependency-policy,test:package,audit:production,buildandwrangler deploy --dry-runall pass locally.