Skip to content

fix: add gpt-5.4 codex pricing#603

Open
cuidong233 wants to merge 1 commit intosteipete:mainfrom
cuidong233:fix/gpt-5-4-pricing
Open

fix: add gpt-5.4 codex pricing#603
cuidong233 wants to merge 1 commit intosteipete:mainfrom
cuidong233:fix/gpt-5-4-pricing

Conversation

@cuidong233
Copy link

@cuidong233 cuidong233 commented Mar 25, 2026

Summary

  • add Codex pricing entries for gpt-5.4 and gpt-5.4-codex
  • make Codex cost calculations work for current GPT-5.4 usage logs
  • add regression coverage for GPT-5.4 normalization and cost calculation

Why

CodexBar was already parsing and summing GPT-5.4 token usage, but the pricing table did not include GPT-5.4. That made large GPT-5.4 token totals appear alongside implausibly small USD totals.

Testing

  • swift test --filter CostUsagePricingTests

Before / After

Before

Before pricing fix

After

After pricing fix

Closes #602

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.

Codex cost summary can show implausible cost/token combinations

1 participant