Add GPT-6 Astra pricing - #414
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdds GPT-6 Astra pricing and maps the ChangesGPT-6 Astra pricing
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to GPT-6 Astra usage will now resolve to published pricing rather than appearing as unpriced usage, with tested aliases and token-rate behavior. No current merge-blocking risk remains. Suggested reviewers: 🚥 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 |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ceiling | 79c1041 | Commit Preview URL Branch Preview URL |
Sep 07 2026, 02:42 PM |
Fixes #413
GPT-6 Astra tokens scan fine from Codex logs but were missing from the built-in pricing table, so the Charts page showed $0.00 with "0% of tokens priced". This adds the model at OpenAI's published standard rates: $10 input / $1 cached input / $50 output per 1M tokens.
Details:
gpt-6normalizes togpt-6-astra, matching the existinggpt-5.6togpt-5.6-solpattern. Date-suffixed and-codexvariants already resolve through existing logic.Commands run:
cargo test --manifest-path rust/Cargo.toml(1186 passed),cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml(617 passed),cargo fmt --all. Clippy is clean for the touched files; the two existing-D warningsfailures are pre-existing on clean main (Windows-gated code that is dead on Linux).Note
Add
gpt-6-astrapricing and aliasgpt-6to it inCODEX_PRICINGgpt-6-astraentry toCODEX_PRICINGat $10/M input, $50/M output, and $1/M cached-input tokens, with no long-context rate override.CostUsagePricing::normalize_codex_modelnow maps the exact namegpt-6to the canonical keygpt-6-astra, so the alias and dated/Codex-suffixed Astra variants resolve to the new rates.gpt-6alias normalization, plus cached and long-context cost assertions.gpt-6and Astra variants now resolve togpt-6-astrapricing incost_pricing.rs; reviewnormalize_codex_modeland thegpt-6-astratable entry to confirm rates and alias handling.Macroscope summarized 79c1041.
Summary by CodeRabbit
New Features
gpt-6model alias and related model identifiers.Bug Fixes