mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Use the actual response tier for OpenAI costs and persisted observations. Replace broad model-prefix pricing with explicit variants and documented aliases and snapshots. Retain regular Sol prices, excluding temporary promotions, and add GPT Image 2.5 Sunburst and Flare token pricing. Include File Search call fees and leave incomplete tool totals unpriced. Add Grok 4.6 and confirmed Priority rates, persist the served xAI tier, and preserve authoritative zero-cost responses. Reject inconsistent cache counts, invalid totals and token-count overflow during local estimation. Validation: OpenAI, xAI and gateway-protocol tests, additional billing and compaction regressions, workspace rustfmt, strict workspace Clippy with all targets and features, and diff whitespace checks passed. Co-authored-by: Codex <noreply@openai.com>