Commit aa40f1e
Add GPT-5.6 Sol/Terra/Luna Codex pricing (#2023)
* Add GPT-5.6 Sol/Terra/Luna Codex pricing
Local cost scanning already counts gpt-5.6-* tokens but left day totals understated without rates. Bundle preview pricing so Sol/Terra/Luna resolve without models.dev.
* Price GPT-5.6 long-context, Priority, cache-write, and alias
Address review: official long-context (>272K) and Priority rates, 1.25x
cache-write billing for Pi disjoint writes, and route gpt-5.6 to Sol.
* Invalidate Pi cost cache and price Priority cache writes
Bump Pi session cost cache to v5 so GPT-5.6 rows reprice with 1.25x
cache-write rates, and apply the same multiplier on Priority input.
* Fall back bundled long-context rates for models.dev gaps
When models.dev has a GPT-5.6 hit without context_over_200k fields, still
apply bundled above-threshold input/output/cache-read rates with the 272K
threshold so long prompts are not under-billed at short rates.
* fix: harden GPT-5.6 cost pricing
Co-authored-by: Stephen <stephen@klu.ai>
* Use released GPT-5.6 IDs and fictitious date suffixes in tests
Match AGENTS model-name policy: price coverage uses official unsuffixed
IDs; dated normalization uses explicitly fictitious 2099-01-01 suffixes.
* test: lock GPT-5.6 Priority boundary
---------
Co-authored-by: Peter Steinberger <steipete@gmail.com>1 parent 5bee017 commit aa40f1e
10 files changed
Lines changed: 838 additions & 67 deletions
File tree
- Sources/CodexBarCore
- Generated
- Vendored/CostUsage
- Tests/CodexBarTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
102 | | - | |
103 | | - | |
| 104 | + | |
104 | 105 | | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
124 | | - | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 192 | + | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
203 | 217 | | |
204 | 218 | | |
205 | 219 | | |
| |||
645 | 659 | | |
646 | 660 | | |
647 | 661 | | |
648 | | - | |
| 662 | + | |
| 663 | + | |
649 | 664 | | |
650 | 665 | | |
651 | 666 | | |
652 | 667 | | |
653 | 668 | | |
| 669 | + | |
654 | 670 | | |
655 | 671 | | |
656 | 672 | | |
| |||
0 commit comments