-
Notifications
You must be signed in to change notification settings - Fork 386
Add new OpenAI model pricing and remove -codex suffix stripping #358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,7 @@ import Testing | |
| struct CostUsagePricingTests { | ||
| @Test | ||
| func normalizesCodexModelVariants() { | ||
| #expect(CostUsagePricing.normalizeCodexModel("openai/gpt-5-codex") == "gpt-5") | ||
| #expect(CostUsagePricing.normalizeCodexModel("gpt-5.2-codex") == "gpt-5.2") | ||
| #expect(CostUsagePricing.normalizeCodexModel("gpt-5.1-codex-max") == "gpt-5.1") | ||
| #expect(CostUsagePricing.normalizeCodexModel("openai/gpt-5-codex") == "gpt-5-codex") | ||
| } | ||
|
Comment on lines
6
to
9
|
||
|
|
||
| @Test | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New Codex pricing keys were added (
gpt-5.1-codex,gpt-5.1-codex-mini,gpt-5.1-codex-max,gpt-5.3-codex), but current tests only assert non-nil cost forgpt-5.1-codex-max. Add/extend tests to cover the new keys (especiallygpt-5.1-codex-miniandgpt-5.3-codex) so a future typo in the dictionary key or normalization behavior doesn’t silently make lookups return nil.