-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update GPT-5.6 Terra and Luna pricing #2521
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 2 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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // Generated by Scripts/regenerate-codex-parser-hash.sh. Do not edit by hand. | ||
|
|
||
| enum CodexParserHash { | ||
| static let value = "3aa49b47f4b78e13" | ||
| static let value = "b21ac0df2edc86f1" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,6 +139,7 @@ extension CostUsageScanner { | |
| inputTokens: row.input, | ||
| cachedInputTokens: row.cached, | ||
| outputTokens: row.output, | ||
| pricingDate: CostUsageDateParser.parse(row.day), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the process runs east of UTC (for example, Asia/Tokyo), Useful? React with 👍 / 👎. |
||
| modelsDevCatalog: modelsDevCatalog, | ||
| modelsDevCacheRoot: modelsDevCacheRoot) | ||
| else { continue } | ||
|
|
@@ -164,6 +165,7 @@ extension CostUsageScanner { | |
| inputTokens: row.input, | ||
| cachedInputTokens: row.cached, | ||
| outputTokens: row.output, | ||
| pricingDate: CostUsageDateParser.parse(row.day), | ||
| modelsDevCatalog: modelsDevCatalog, | ||
| modelsDevCacheRoot: modelsDevCacheRoot), | ||
| let priorityCost = CostUsagePricing.codexPriorityCostUSD( | ||
|
|
@@ -250,6 +252,7 @@ extension CostUsageScanner { | |
| inputTokens: row.input, | ||
| cachedInputTokens: row.cached, | ||
| outputTokens: row.output, | ||
| pricingDate: CostUsageDateParser.parse(row.day), | ||
| modelsDevCatalog: modelsDevCatalog, | ||
| modelsDevCacheRoot: modelsDevCacheRoot) | ||
| if isPriority, let priorityCost = CostUsagePricing.codexPriorityCostUSD( | ||
|
|
@@ -461,6 +464,7 @@ extension CostUsageScanner { | |
| inputTokens: row.input, | ||
| cachedInputTokens: row.cached, | ||
| outputTokens: row.output, | ||
| pricingDate: CostUsageDateParser.parse(row.day), | ||
| modelsDevCatalog: modelsDevCatalog, | ||
| modelsDevCacheRoot: modelsDevCacheRoot) | ||
| let exactCost: Double? = if priorityMetadata != nil, | ||
|
|
@@ -604,6 +608,7 @@ extension CostUsageScanner { | |
| inputTokens: row.input, | ||
| cachedInputTokens: row.cached, | ||
| outputTokens: row.output, | ||
| pricingDate: CostUsageDateParser.parse(row.day), | ||
| modelsDevCatalog: modelsDevCatalog, | ||
| modelsDevCacheRoot: modelsDevCacheRoot) | ||
|
|
||
|
|
@@ -1565,6 +1570,7 @@ extension CostUsageScanner { | |
| inputTokens: input, | ||
| cachedInputTokens: cached, | ||
| outputTokens: output, | ||
| pricingDate: CostUsageDateParser.parse(day), | ||
| modelsDevCatalog: catalogResolver.load(modelsDevCatalogLoader), | ||
| modelsDevCacheRoot: modelsDevCacheRoot) | ||
| if splitTotalCost == nil, | ||
|
|
||
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.
For bundled-fallback pricing of Terra or Luna usage dated before 2026-07-30, these replacements retroactively apply the new rates.
codexCostUSDaccepts no pricing date, and callers such ascodexRowsCostUSDandcodexRowCostBreakdowndo not passrow.day; the changed pricing fingerprint also forces cached history to be rescanned. Consequently, pre-cutover Terra costs are reduced by 20% and Luna costs by 80%, corrupting historical totals. Keep the old and new tuples behind an effective-date cutoff and price each row using its recorded date.Useful? React with 👍 / 👎.