Skip to content

Commit c42d047

Browse files
committed
feat(openai): add GPT-6.1 Sol to OpenAI model catalogs
Add gpt-6.1-sol to the OpenAI native and OpenAI Codex (ChatGPT subscription) model catalogs with verified metadata from OpenAI's docs: - 1,050,000 context window (922K max input), 128K max output - Standard pricing per MTok (<=272K input): $2.00 input, $0.10 cached input, $2.50 cache writes, $10.00 output - Long context (>272K): 2x input/cache rates, 1.5x output - Flex 50% / priority (Fast) 2x tiers - reasoning.effort low through max (default medium); none/minimal are not supported, so requiredReasoningEffort is set like Astra - Text+image input, text output, verbosity, prompt caching Codex catalog entry uses subscription pricing with the 372K context window of its Sol-family predecessors. Provider defaults unchanged.
1 parent 0b7cd10 commit c42d047

3 files changed

Lines changed: 129 additions & 0 deletions

File tree

‎packages/types/src/__tests__/openai-models.test.ts‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,53 @@ describe("OpenAI native models", () => {
4747
])
4848
})
4949

50+
it("describes GPT-6.1 Sol with verified pricing and context metadata", () => {
51+
expect(openAiNativeModels["gpt-6.1-sol"]).toEqual({
52+
maxTokens: 128_000,
53+
contextWindow: 1_050_000,
54+
includedTools: ["apply_patch"],
55+
excludedTools: ["apply_diff", "write_to_file"],
56+
supportsImages: true,
57+
supportsPromptCache: true,
58+
supportsReasoningEffort: ["low", "medium", "high", "xhigh", "max"],
59+
requiredReasoningEffort: true,
60+
reasoningEffort: "medium",
61+
inputPrice: 2,
62+
outputPrice: 10,
63+
cacheWritesPrice: 2.5,
64+
cacheReadsPrice: 0.1,
65+
longContextPricing: {
66+
thresholdTokens: 272_000,
67+
inputPriceMultiplier: 2,
68+
outputPriceMultiplier: 1.5,
69+
cacheWritesPriceMultiplier: 2,
70+
cacheReadsPriceMultiplier: 2,
71+
appliesToServiceTiers: ["default", "flex", "priority"],
72+
},
73+
supportsVerbosity: true,
74+
supportsTemperature: false,
75+
tiers: [
76+
{
77+
name: "flex",
78+
contextWindow: 1_050_000,
79+
inputPrice: 1,
80+
outputPrice: 5,
81+
cacheWritesPrice: 1.25,
82+
cacheReadsPrice: 0.05,
83+
},
84+
{
85+
name: "priority",
86+
contextWindow: 1_050_000,
87+
inputPrice: 4,
88+
outputPrice: 20,
89+
cacheWritesPrice: 5,
90+
cacheReadsPrice: 0.2,
91+
},
92+
],
93+
description: "GPT-6.1 Sol: Near-Astra performance for complex coding and professional work at a lower cost",
94+
})
95+
})
96+
5097
it("describes GPT-6 Sol and Luna with verified pricing and context metadata", () => {
5198
expect(openAiNativeModels["gpt-6-sol"]).toEqual({
5299
maxTokens: 128_000,
@@ -163,6 +210,26 @@ describe("OpenAI native models", () => {
163210
})
164211

165212
describe("OpenAI Codex models", () => {
213+
it("describes the GPT-6.1 Sol subscription contract", () => {
214+
expect(openAiCodexModels["gpt-6.1-sol"]).toEqual({
215+
maxTokens: 128_000,
216+
contextWindow: 372_000,
217+
includedTools: ["apply_patch"],
218+
excludedTools: ["apply_diff", "write_to_file"],
219+
supportsImages: true,
220+
supportsPromptCache: true,
221+
supportsReasoningEffort: ["low", "medium", "high", "xhigh", "max"],
222+
requiredReasoningEffort: true,
223+
reasoningEffort: "medium",
224+
inputPrice: 0,
225+
outputPrice: 0,
226+
supportsVerbosity: true,
227+
supportsTemperature: false,
228+
description:
229+
"GPT-6.1 Sol: Near-Astra performance for complex coding and professional work at a lower cost via ChatGPT subscription",
230+
})
231+
})
232+
166233
it("describes GPT-6 Sol and Luna subscription contracts", () => {
167234
expect(openAiCodexModels["gpt-6-sol"]).toEqual({
168235
maxTokens: 128_000,

‎packages/types/src/providers/openai-codex.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ export const openAiCodexModels = {
4040
supportsTemperature: false,
4141
description: "GPT-6 Astra: OpenAI's most capable model for complex, demanding work via ChatGPT subscription",
4242
},
43+
"gpt-6.1-sol": {
44+
maxTokens: 128000,
45+
contextWindow: 372000,
46+
includedTools: ["apply_patch"],
47+
excludedTools: ["apply_diff", "write_to_file"],
48+
supportsImages: true,
49+
supportsPromptCache: true,
50+
supportsReasoningEffort: ["low", "medium", "high", "xhigh", "max"],
51+
requiredReasoningEffort: true,
52+
reasoningEffort: "medium",
53+
// Subscription-based: no per-token costs
54+
inputPrice: 0,
55+
outputPrice: 0,
56+
supportsVerbosity: true,
57+
supportsTemperature: false,
58+
description:
59+
"GPT-6.1 Sol: Near-Astra performance for complex coding and professional work at a lower cost via ChatGPT subscription",
60+
},
4361
"gpt-6-sol": {
4462
maxTokens: 128000,
4563
contextWindow: 372000,

‎packages/types/src/providers/openai.ts‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,50 @@ export const openAiNativeModels = {
6060
],
6161
description: "GPT-6 Astra: OpenAI's most capable model for complex reasoning and end-to-end agentic work",
6262
},
63+
"gpt-6.1-sol": {
64+
maxTokens: 128000,
65+
contextWindow: 1_050_000,
66+
includedTools: ["apply_patch"],
67+
excludedTools: ["apply_diff", "write_to_file"],
68+
supportsImages: true,
69+
supportsPromptCache: true,
70+
supportsReasoningEffort: ["low", "medium", "high", "xhigh", "max"],
71+
requiredReasoningEffort: true,
72+
reasoningEffort: "medium",
73+
inputPrice: 2.0,
74+
outputPrice: 10.0,
75+
cacheWritesPrice: 2.5,
76+
cacheReadsPrice: 0.1,
77+
longContextPricing: {
78+
thresholdTokens: 272_000,
79+
inputPriceMultiplier: 2,
80+
outputPriceMultiplier: 1.5,
81+
cacheWritesPriceMultiplier: 2,
82+
cacheReadsPriceMultiplier: 2,
83+
appliesToServiceTiers: ["default", "flex", "priority"],
84+
},
85+
supportsVerbosity: true,
86+
supportsTemperature: false,
87+
tiers: [
88+
{
89+
name: "flex",
90+
contextWindow: 1_050_000,
91+
inputPrice: 1.0,
92+
outputPrice: 5.0,
93+
cacheWritesPrice: 1.25,
94+
cacheReadsPrice: 0.05,
95+
},
96+
{
97+
name: "priority",
98+
contextWindow: 1_050_000,
99+
inputPrice: 4.0,
100+
outputPrice: 20.0,
101+
cacheWritesPrice: 5.0,
102+
cacheReadsPrice: 0.2,
103+
},
104+
],
105+
description: "GPT-6.1 Sol: Near-Astra performance for complex coding and professional work at a lower cost",
106+
},
63107
"gpt-6-sol": {
64108
maxTokens: 128000,
65109
contextWindow: 1_050_000,

0 commit comments

Comments
 (0)