Repository navigation
FEAT: add GPT-6 Astra API pricing - #37
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The change set is narrowly scoped to pricing data plus deterministic regression tests, and the updated model pricing integrates cleanly with the existing fail-closed costing behavior.
Pull request overview
This PR updates Codexometer’s embedded Standard API-equivalent pricing table to include GPT-6 Astra and refreshes the published-pricing provenance date used across Quota/Benchmark reporting.
Changes:
- Add GPT-6 Astra short- and long-context Standard token prices to the maintained pricing table.
- Refresh the embedded pricing retrieval date to 2026-09-04 and document the covered models in the README.
- Add regression tests to lock the maintained pricing table and directly validate GPT-6 Astra short/long cost calculations.
File summaries
| File | Description |
|---|---|
| README.md | Updates embedded pricing provenance date and documents which models are covered by the maintained price table. |
| internal/codex/benchmark.go | Updates pricing provenance constant and adds GPT-6 Astra rates to the compiled Standard pricing table. |
| internal/codex/benchmark_test.go | Adds a table-level regression test for maintained rates and exercises GPT-6 Astra short/long context costing. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Why
Codexometer currently fails closed when a Codex session resolves to GPT-6 Astra, leaving its API-equivalent cost unavailable even though OpenAI now publishes Standard token prices for the model.
What changed
The estimator remains deliberately fail-closed where OpenAI does not publish a cache-write or long-context price. It continues to estimate Standard API-equivalent text-token cost only; Batch, Flex, Fast, regional uplift, and tool-call charges are outside this table.
Official source: https://developers.openai.com/api/docs/pricing
Validation
go test -race -cover ./...go vet ./...git diff --check