Skip to content

Commit b04597f

Browse files
feat(providers): add gpt-5.2-codex model to openai-native provider (#10731)
1 parent 4b17f98 commit b04597f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/types/src/providers/openai.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ export const openAiNativeModels = {
4949
],
5050
description: "GPT-5.2: Our flagship model for coding and agentic tasks across industries",
5151
},
52+
"gpt-5.2-codex": {
53+
maxTokens: 128000,
54+
contextWindow: 400000,
55+
supportsNativeTools: true,
56+
defaultToolProtocol: "native",
57+
includedTools: ["apply_patch"],
58+
excludedTools: ["apply_diff", "write_to_file"],
59+
supportsImages: true,
60+
supportsPromptCache: true,
61+
promptCacheRetention: "24h",
62+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
63+
reasoningEffort: "medium",
64+
inputPrice: 1.75,
65+
outputPrice: 14.0,
66+
cacheReadsPrice: 0.175,
67+
supportsTemperature: false,
68+
tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 3.5, outputPrice: 28.0, cacheReadsPrice: 0.35 }],
69+
description:
70+
"GPT-5.2 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
71+
},
5272
"gpt-5.2-chat-latest": {
5373
maxTokens: 16_384,
5474
contextWindow: 128_000,

0 commit comments

Comments
 (0)