Commit ef716e9
Add Codex model pricing and remove -codex suffix stripping
- Add pricing for gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini, gpt-5.3-codex
- Fix gpt-5.1-codex-mini/max pricing (values were swapped)
- Remove -codex suffix fallback in normalizeCodexModel to ensure exact pricing lookups
- Bump cost-usage cache schema to v2 to invalidate stale normalized keys
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f493450 commit ef716e9
3 files changed
Lines changed: 18 additions & 8 deletions
File tree
- Sources/CodexBarCore/Vendored/CostUsage
- Tests/CodexBarTests
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
| |||
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
44 | 60 | | |
45 | 61 | | |
46 | 62 | | |
| |||
161 | 177 | | |
162 | 178 | | |
163 | 179 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 180 | | |
169 | 181 | | |
170 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
| |||
0 commit comments