Repository navigation
FEAT: add GPT-6.2 Astra and Sol pricing - #107
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
Approval should wait for human verification of the externally published, date-sensitive pricing and promotion cutoff semantics that cannot be confirmed from this repository snapshot alone.
No open issues 🎉
What changed in this PR
Adds GPT-6.2 Astra and Sol pricing to Codexometer’s shared API-equivalent pricing engine, including long-context rates and timestamp-based Ultrafast promotional pricing.
Changes:
- Adds Standard, cached-input, cache-write, output, and long-context rates for GPT-6.2 Astra and Sol.
- Adds Fast/priority and response-timestamp-based Ultrafast pricing while failing closed for unsupported tiers, unpublished IDs, and unreliable timestamps.
- Updates pricing documentation, presentation snapshots, provenance dates, and regression coverage.
| File | Description |
|---|---|
| README.md | Documents the GPT-6.2 rates, long-context behavior, Ultrafast promotion, pricing limitations, and updated review date. |
| internal/ui/english_snapshot_test.go | Updates the English presentation snapshot for the new pricing review date. |
| internal/codex/service_tier.go | Implements GPT-6.2 service-tier multipliers and timestamp-aware Ultrafast pricing. |
| internal/codex/service_tier_test.go | Tests GPT-6.2 tier multipliers, promotion boundaries, token classes, unsupported combinations, and missing timestamps. |
| internal/codex/live_usage.go | Tracks whether legacy usage timestamps are estimated before applying dated pricing. |
| internal/codex/live_usage_exact.go | Preserves timestamp reliability for exact response usage records. |
| internal/codex/benchmark.go | Adds GPT-6.2 Standard, cached-input, cache-write, output, and long-context price entries. |
| internal/codex/benchmark_test.go | Verifies GPT-6.2 rates, model identifiers, token classes, context boundaries, and unsupported combinations. |
Review effort: Lite
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 does not yet have published GPT-6.2 prices, so otherwise valid usage for these models cannot contribute to API-equivalent estimates. Add the officially listed Astra and Sol models to the shared pricing engine used by both terminal and web interfaces.
Changes
Validation
go vet, duplication ratchet and local build.Temporary build-tool advisory exception
With maintainer approval, narrowly except GHSA-fc5q-39xc-vjpf (CVE-2026-112366) for development-only picomatch 4.0.7 until 17 December 2026, 00:00 UTC. No patched npm release is available; tracking upstream issue #234. This is documented temporary risk acceptance, not a vulnerability fix.
The full original npm report remains in CI. Runtime auditing is unchanged and has no exceptions. Changed versions, runtime instances, a severity escalation, other high/critical advisories (including against the same package), an expired exception, malformed reports and service failures remain blocking. Seven deterministic policy tests run in the security job. No extra dependency, app-startup check or runtime code is added.
Sources
These remain API-equivalent estimates, not subscription billing or a claim that a requested service tier was delivered. Cache-write retention remains the existing 30-minute assumption. No version bump or release is included.