Skip to content

Commit 6a8bea4

Browse files
committed
fix(openai): correct GPT-5.6 tier pricing
1 parent a3d3e0f commit 6a8bea4

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎extensions/openai/openai-provider.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,12 +1154,12 @@ describe("buildOpenAIProvider", () => {
11541154
},
11551155
{
11561156
id: "gpt-5.6-terra",
1157-
cost: { input: 2, output: 12, cacheRead: 0.2, cacheWrite: 2.5 },
1157+
cost: { input: 2.5, output: 15, cacheRead: 0.25, cacheWrite: 3.125 },
11581158
thinkingLevelMap: { off: "none", xhigh: "xhigh", max: "max" },
11591159
},
11601160
{
11611161
id: "gpt-5.6-luna",
1162-
cost: { input: 0.2, output: 1.2, cacheRead: 0.02, cacheWrite: 0.25 },
1162+
cost: { input: 1, output: 6, cacheRead: 0.1, cacheWrite: 1.25 },
11631163
thinkingLevelMap: { off: "none", xhigh: "xhigh", max: "max" },
11641164
},
11651165
])("resolves $id locally with direct API metadata", ({ id, cost, thinkingLevelMap }) => {

‎extensions/openai/openai-provider.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ const OPENAI_GPT_56_SOL_COST = {
8787
cacheWrite: 6.25,
8888
} as const;
8989
const OPENAI_GPT_56_TERRA_COST = {
90-
input: 2,
91-
output: 12,
92-
cacheRead: 0.2,
93-
cacheWrite: 2.5,
90+
input: 2.5,
91+
output: 15,
92+
cacheRead: 0.25,
93+
cacheWrite: 3.125,
9494
} as const;
9595
const OPENAI_GPT_56_LUNA_COST = {
96-
input: 0.2,
97-
output: 1.2,
98-
cacheRead: 0.02,
99-
cacheWrite: 0.25,
96+
input: 1,
97+
output: 6,
98+
cacheRead: 0.1,
99+
cacheWrite: 1.25,
100100
} as const;
101101
const OPENAI_GPT_55_COST = { input: 5, output: 30, cacheRead: 0.5, cacheWrite: 0 } as const;
102102
const OPENAI_GPT_55_PRO_COST = { input: 30, output: 180, cacheRead: 0, cacheWrite: 0 } as const;

0 commit comments

Comments
 (0)