Skip to content

Commit 11c51fb

Browse files
1 parent b73dc15 commit 11c51fb

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

packages/types/src/providers/openai.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,24 @@ export const openAiNativeModels = {
6363
description:
6464
"GPT-5.2 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
6565
},
66+
"gpt-5.3-codex": {
67+
maxTokens: 128000,
68+
contextWindow: 400000,
69+
includedTools: ["apply_patch"],
70+
excludedTools: ["apply_diff", "write_to_file"],
71+
supportsImages: true,
72+
supportsPromptCache: true,
73+
promptCacheRetention: "24h",
74+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
75+
reasoningEffort: "medium",
76+
inputPrice: 1.75,
77+
outputPrice: 14.0,
78+
cacheReadsPrice: 0.175,
79+
supportsTemperature: false,
80+
tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 3.5, outputPrice: 28.0, cacheReadsPrice: 0.35 }],
81+
description:
82+
"GPT-5.3 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
83+
},
6684
"gpt-5.2-chat-latest": {
6785
maxTokens: 16_384,
6886
contextWindow: 128_000,

src/api/providers/__tests__/openai-native.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,19 @@ describe("OpenAiNativeHandler", () => {
236236
expect(modelInfo.info.contextWindow).toBe(1047576)
237237
})
238238

239+
it("should return GPT-5.3 Codex model info when selected", () => {
240+
const codexHandler = new OpenAiNativeHandler({
241+
...mockOptions,
242+
apiModelId: "gpt-5.3-codex",
243+
})
244+
245+
const modelInfo = codexHandler.getModel()
246+
expect(modelInfo.id).toBe("gpt-5.3-codex")
247+
expect(modelInfo.info.maxTokens).toBe(128000)
248+
expect(modelInfo.info.contextWindow).toBe(400000)
249+
expect(modelInfo.info.supportsReasoningEffort).toEqual(["low", "medium", "high", "xhigh"])
250+
})
251+
239252
it("should handle undefined model ID", () => {
240253
const handlerWithoutModel = new OpenAiNativeHandler({
241254
openAiNativeApiKey: "test-api-key",

0 commit comments

Comments
 (0)