Skip to content

Commit bea7d81

Browse files
feat: add gpt-5.1-codex-max model to OpenAI provider (#9848)
1 parent 9f111e1 commit bea7d81

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

packages/types/src/providers/openai.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ export const openAiNativeModels = {
4242
tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }],
4343
description: "GPT-5.1 Codex: A version of GPT-5.1 optimized for agentic coding in Codex",
4444
},
45+
"gpt-5.1-codex-max": {
46+
maxTokens: 128000,
47+
contextWindow: 400000,
48+
supportsNativeTools: true,
49+
supportsImages: true,
50+
supportsPromptCache: true,
51+
promptCacheRetention: "24h",
52+
supportsReasoningEffort: ["low", "medium", "high"],
53+
reasoningEffort: "medium",
54+
inputPrice: 1.25,
55+
outputPrice: 10.0,
56+
cacheReadsPrice: 0.125,
57+
supportsTemperature: false,
58+
tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }],
59+
description:
60+
"GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
61+
},
4562
"gpt-5.1-codex-mini": {
4663
maxTokens: 128000,
4764
contextWindow: 400000,

src/api/providers/fetchers/roo.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ export const MODEL_DEFAULTS: Record<string, Partial<ModelInfo>> = {
1313
includedTools: ["search_and_replace"],
1414
excludedTools: ["apply_diff"],
1515
},
16+
"openai/gpt-5.1": {
17+
includedTools: ["apply_patch"],
18+
excludedTools: ["apply_diff", "write_to_file"],
19+
reasoningEffort: "medium",
20+
},
21+
"openai/gpt-5": {
22+
includedTools: ["apply_patch"],
23+
excludedTools: ["apply_diff", "write_to_file"],
24+
reasoningEffort: "medium",
25+
},
26+
"openai/gpt-5-mini": {
27+
includedTools: ["apply_patch"],
28+
excludedTools: ["apply_diff", "write_to_file"],
29+
reasoningEffort: "medium",
30+
},
1631
}
1732

1833
/**

0 commit comments

Comments
 (0)