Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packages/types/src/providers/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,24 @@ export const openAiNativeModels = {
description:
"GPT-5.2 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
},
"gpt-5.3-codex": {
maxTokens: 128000,
contextWindow: 400000,
includedTools: ["apply_patch"],
excludedTools: ["apply_diff", "write_to_file"],
supportsImages: true,
supportsPromptCache: true,
promptCacheRetention: "24h",
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
reasoningEffort: "medium",
inputPrice: 1.75,
outputPrice: 14.0,
cacheReadsPrice: 0.175,
supportsTemperature: false,
tiers: [{ name: "priority", contextWindow: 400000, inputPrice: 3.5, outputPrice: 28.0, cacheReadsPrice: 0.35 }],
description:
"GPT-5.3 Codex: Our most intelligent coding model optimized for long-horizon, agentic coding tasks",
},
"gpt-5.2-chat-latest": {
maxTokens: 16_384,
contextWindow: 128_000,
Expand Down
13 changes: 13 additions & 0 deletions src/api/providers/__tests__/openai-native.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,19 @@ describe("OpenAiNativeHandler", () => {
expect(modelInfo.info.contextWindow).toBe(1047576)
})

it("should return GPT-5.3 Codex model info when selected", () => {
const codexHandler = new OpenAiNativeHandler({
...mockOptions,
apiModelId: "gpt-5.3-codex",
})

const modelInfo = codexHandler.getModel()
expect(modelInfo.id).toBe("gpt-5.3-codex")
expect(modelInfo.info.maxTokens).toBe(128000)
expect(modelInfo.info.contextWindow).toBe(400000)
expect(modelInfo.info.supportsReasoningEffort).toEqual(["low", "medium", "high", "xhigh"])
})

it("should handle undefined model ID", () => {
const handlerWithoutModel = new OpenAiNativeHandler({
openAiNativeApiKey: "test-api-key",
Expand Down
Loading