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
This commit is contained in:
Hannes Rudolph 2025-12-04 20:06:45 -07:00
parent c10d1d9ffc
commit d2dee3cddf

View file

@ -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,