Skip to content

FEAT: add GPT-6.2 Astra and Sol pricing - #107

Merged
merefield merged 3 commits into
mainfrom
feat/gpt-6-2-pricing
Nov 17, 2026
Merged

merefield merged 3 commits into
mainfrom
feat/gpt-6-2-pricing

Conversation

@merefield

@merefield merefield commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

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

  • Add GPT-6.2 Astra and Sol Standard prices, including cached input, 30-minute cache writes and long-context rates above 272,000 input tokens per response.
  • Maintain Fast/priority at 2× Standard. Price requested Ultrafast at 3× through 28 February 2027, then 6× from midnight 1 March 2027 Pacific time, using the individual response timestamp rather than the time Codexometer starts.
  • Keep GPT-6.2 Flex, unpublished sibling/preview IDs and Ultrafast responses without a reliable timestamp unpriced. Preserve display-time fallbacks without allowing them to select a dated promotional price.
  • Refresh the embedded pricing review date to 17 November 2026 and document the rates, promotion and limitations. Existing maintained prices are unchanged; update the advertised GPT-5.6 Sol promotion end date to 30 November.
  • Keep model/reasoning availability dynamically discovered from Codex; no fabricated benchmark catalogue entries or new UI controls.

Validation

  • Regression coverage for published rates, base/dated IDs, cached/write/output token classes, the 272,000-token boundary, Standard/Fast/priority and unsupported combinations.
  • Ultrafast tests immediately before, exactly at and after the Pacific-time promotion cutoff, plus missing/estimated timestamps in both exact and legacy rollout ingestion.
  • Race-enabled Go regression suite (the separately isolated locale subprocess matrix is left to CI), go vet, duplication ratchet and local build.
  • English presentation snapshot updated solely for the displayed pricing review date.
  • Refreshed and verified the affected README screenshots for the new pricing date; this fixes the Experimental web screenshot-freshness failure. The frontend build and browser regressions passed in the original CI run.

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@merefield
merefield merged commit a20fd96 into main Nov 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants