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
Copy Markdown

@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

@iam-brain
Copy link
Copy Markdown
Contributor

iam-brain commented Mar 27, 2026

5.4-codex doesn't exist, and 5.4 and 5.4-mini were already added before this was opened: CostUsagePricing.swift#L95)

Edit: your fork is 293 commits behind the current main. Update your app or rebase your fork to rebuild with the updates you're missing

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

2 participants