fix(models): Complete Terra and Luna tiered pricing - #240
Conversation
Apply OpenAI's 272K short- and long-context brackets to Terra and Luna across standard, priority, flex, and batch processing. Correct the current service-tier rates, preserve pre-July 30 standard pricing, and cover mixed cached and uncached long prompts.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughTerra and Luna pricing now uses 272K-token tiers for standard, Priority, Flex, and Batch service tiers. ChangesTiered model pricing
Estimated code review effort: 4 (Complex) | ~45 minutes Suggested reviewers: Poem Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Extend dated pricing windows with service-tier overrides so Terra and Luna retain their pre-July 30 Priority, Flex, and Batch rates. Model historical long-context multipliers explicitly and cover full-request costs across every tier.
Why
GPT-5.6 Terra and Luna support long-context pricing above 272K prompt tokens, but Splitrail currently treats both models as flat-priced. Their recorded Priority/Fast and Flex/Batch rates are also stale relative to OpenAI’s current pricing table.
This underreports long-context requests and can misprice short-context service-tier usage. Updating only the current tables would also retroactively reprice usage from before OpenAI’s July 30 price cut, so historical Standard, Priority, Flex, and Batch rates need to remain date-aware.
GPT-5.4 was reviewed at the same time: its Standard and Flex/Batch brackets already match OpenAI, while no long-context Priority/Fast rates are published, so this change does not invent them.
What changed
DatedPricingwith optional service-tier overrides while preserving external-config compatibility through#[serde(default)].Validation
cargo build --quietcargo test --quiet— 432 passedcargo clippy --quiet -- -D warningscargo doc --quietcargo fmt --all --quietgit diff --checkSummary by CodeRabbit
gpt-5.6-terraandgpt-5.6-lunato use 272K-token usage tiers.