Repository navigation
Docs: Say that the downloaded price list drops the same dear models - #1679
Conversation
The bundled table and the price list a laptop downloads both go through pricegen.Entries, so the BundleableRate rule drops a model from both. docs/pricing.md said only that the bundled table leaves them out. Also update the count in BundleableRate's comment: 10 rows when the rule was written, 13 at the pinned commit. Refs rossoctl#1406 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
clawgenti
left a comment
There was a problem hiding this comment.
Summary
The new sentence holds for its target case. pricelist.Fetcher.Fetch and Cached both build entries through pricegen.Entries, and ratesOf applies pricing.BundleableRate to the base and threshold rates. So the download emits no row for o1-pro, the gpt-5*-pro tiers, or the three above-272k rows. I checked this end to end: I built BuildWithList(nil, list) from the snapshot plus a synthetic gpt-9-pro at $600/Mtok, and every one resolves ProvNone. I also counted the rule's drops in testdata/model_prices.snapshot.json: 13 of 257 first-party rows (10 on list rate, 3 on the above-272k output rate), which matches the doc. I have two small suggestions on the wording and one note about an existing gap the new sentence sits next to. None of them block the merge.
Author: huang195 (MEMBER — maintainer)
Areas reviewed: Docs, Go (comment only)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing
| // tiers that prompted it. Written when bundling OpenAI brought in o1-pro at $600/Mtok, | ||
| // whose 10x-resolved rate is 6x this ceiling; 10 of 257 rows fell to it, none of them a | ||
| // model any supported agent selects. | ||
| // whose 10x-resolved rate is 6x this ceiling; 10 of 257 rows fell to it then, and 13 at |
There was a problem hiding this comment.
suggestion: "10 of 257 rows fell to it then, and 13 at the pinned commit" reads as if the pinned data changed in between. It didn't. The snapshot has been at ee7c7e14 with 257 first-party rows since 76a3cde, when the rule was written. The count went from 10 to 13 because 09f5d3f started decoding the _above_272k tier, so three rows began failing on their threshold output rate. Something like "10 of 257 rows fell to it then, and 13 once the above-272k tier was read" would say why the number moved.
| report as *priceable but unpriced* and take a `pricing:` entry of your own. Nothing about | ||
| report as *priceable but unpriced* and take a `pricing:` entry of your own. The | ||
| downloaded price list applies the same rule, so the download does not price them either, | ||
| and it drops a newer model past the bound the same way. Nothing about |
There was a problem hiding this comment.
suggestion: "drops a newer model past the bound the same way" is true for OpenAI, which has no family glob, so a new dear gpt-* row ends up priceable but unpriced. For Anthropic the result is different, and the next sentence (existing text) claims the opposite. In Entries, a row that fails ratesOf continues before it is considered for newest[fam], so the *claude-*opus-* glob keeps the previous member's rates. I probed this with a synthetic claude-opus-9 at $600/Mtok in the download. BuildWithList resolves it ProvBundled at claude-opus-5's $5/$25 rates, and the shipped table does the same. So the dear model gets under-priced instead of reported unpriced. The bundled table has the same gap, so this PR didn't create it, but it might be worth either qualifying the sentence ("a newer OpenAI model") or opening a follow-up issue on #1406.
| rate that would under-price exactly the long requests the tier exists for. All thirteen | ||
| report as *priceable but unpriced* and take a `pricing:` entry of your own. Nothing about | ||
| report as *priceable but unpriced* and take a `pricing:` entry of your own. The | ||
| downloaded price list applies the same rule, so the download does not price them either, |
There was a problem hiding this comment.
nit: one edge case for "the download does not price them either". If upstream raises a model that is already in the shipped table past the bound, the download drops its row. BuildWithList only skips shipped rows whose key is in listed, so the stale shipped row comes back and keeps pricing the model at the old, lower rate. I probed this with gpt-5.5 repriced to $600/Mtok in the download: it resolves ProvBundled at $5/$30. That doesn't affect the thirteen named here, since none of them are shipped. It's a fallback gap you may want to note or track, not a problem with this wording.
Part of closing #1406. The decision is to keep the cap and the drop rule.
What it does
docs/pricing.md: says that the downloaded price list applies the same rule. Today the doc says only that the bundled table leaves the dear models out. Both go throughpricegen.Entries, soo1-prois in the download but gets no price.core/cost/pricing/cost.go: theBundleableRatecomment said "10 of 257 rows". At the pinned commit the rule drops 13. The doc already says thirteen.Comment-only change in Go.
gofmtis clean.How I checked
pricegen.Entrieson a real~/.cortex/price-list.json:o1-pro,gpt-5-pro,gpt-5.5-pro,gpt-6-rosalind,gpt-5.6-cyberanddaybreak-red-latestare in the download and get no price.gpt-6-lunaandgpt-5.5get a price.testdata/model_prices.snapshot.json: 13 of 257 first-party rows. Today's download drops 14 (gpt-6-rosalindalso, at $112.50/Mtok above 272k).Assisted-By: Claude (Anthropic AI) [email protected]