From d2dee3cddf70ea0f3628f3b6fbca6ea7beb62d5a Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 4 Dec 2025 20:06:45 -0700 Subject: [PATCH 1/2] feat: add gpt-5.1-codex-max model to OpenAI provider Add GPT-5.1-Codex-Max model with: - 400K context window, 128K max output tokens - Higher reasoning support (low/medium/high) - $1.25/$10 input/output pricing per 1M tokens - Image support and prompt caching - Priority tier option --- packages/types/src/providers/openai.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/types/src/providers/openai.ts b/packages/types/src/providers/openai.ts index 0bff8aea3f7..fb0837c3c64 100644 --- a/packages/types/src/providers/openai.ts +++ b/packages/types/src/providers/openai.ts @@ -42,6 +42,23 @@ export const openAiNativeModels = { tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }], description: "GPT-5.1 Codex: A version of GPT-5.1 optimized for agentic coding in Codex", }, + "gpt-5.1-codex-max": { + maxTokens: 128000, + contextWindow: 400000, + supportsNativeTools: true, + supportsImages: true, + supportsPromptCache: true, + promptCacheRetention: "24h", + supportsReasoningEffort: ["low", "medium", "high"], + reasoningEffort: "medium", + inputPrice: 1.25, + outputPrice: 10.0, + cacheReadsPrice: 0.125, + supportsTemperature: false, + tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 2.5, outputPrice: 20.0, cacheReadsPrice: 0.25 }], + description: + "GPT-5.1 Codex Max: Our most intelligent coding model optimized for long-horizon, agentic coding tasks", + }, "gpt-5.1-codex-mini": { maxTokens: 128000, contextWindow: 400000, From 59b1b6cf7bdcec0a4d0f3da004e153bdc3c8c631 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 4 Dec 2025 20:24:45 -0700 Subject: [PATCH 2/2] feat: add GPT-5 model defaults for Roo provider Configure GPT-5.1, GPT-5, and GPT-5-mini models to use: - apply_patch as the included tool - Exclude apply_diff and write_to_file - Default reasoning effort: medium --- src/api/providers/fetchers/roo.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/api/providers/fetchers/roo.ts b/src/api/providers/fetchers/roo.ts index b5cc6b36fd0..b86715f77bd 100644 --- a/src/api/providers/fetchers/roo.ts +++ b/src/api/providers/fetchers/roo.ts @@ -13,6 +13,21 @@ export const MODEL_DEFAULTS: Record> = { includedTools: ["search_and_replace"], excludedTools: ["apply_diff"], }, + "openai/gpt-5.1": { + includedTools: ["apply_patch"], + excludedTools: ["apply_diff", "write_to_file"], + reasoningEffort: "medium", + }, + "openai/gpt-5": { + includedTools: ["apply_patch"], + excludedTools: ["apply_diff", "write_to_file"], + reasoningEffort: "medium", + }, + "openai/gpt-5-mini": { + includedTools: ["apply_patch"], + excludedTools: ["apply_diff", "write_to_file"], + reasoningEffort: "medium", + }, } /**