Skip to content

Commit 9a8af61

Browse files
authored
feat(openai-codex): add gpt-5.3-codex-spark model metadata (RooCodeInc#11620)
1 parent d00f1a2 commit 9a8af61

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

packages/types/src/providers/openai-codex.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@ export const openAiCodexModels = {
6868
supportsTemperature: false,
6969
description: "GPT-5.3 Codex: OpenAI's flagship coding model via ChatGPT subscription",
7070
},
71+
"gpt-5.3-codex-spark": {
72+
maxTokens: 8192,
73+
contextWindow: 128000,
74+
includedTools: ["apply_patch"],
75+
excludedTools: ["apply_diff", "write_to_file"],
76+
supportsImages: false,
77+
supportsPromptCache: true,
78+
supportsReasoningEffort: ["low", "medium", "high", "xhigh"],
79+
reasoningEffort: "medium",
80+
inputPrice: 0,
81+
outputPrice: 0,
82+
supportsTemperature: false,
83+
description: "GPT-5.3 Codex Spark: Fast, text-only coding model via ChatGPT subscription",
84+
},
7185
"gpt-5.2-codex": {
7286
maxTokens: 128000,
7387
contextWindow: 400000,

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { OpenAiCodexHandler } from "../openai-codex"
44

55
describe("OpenAiCodexHandler.getModel", () => {
6-
it.each(["gpt-5.1", "gpt-5", "gpt-5.1-codex", "gpt-5-codex", "gpt-5-codex-mini"])(
6+
it.each(["gpt-5.1", "gpt-5", "gpt-5.1-codex", "gpt-5-codex", "gpt-5-codex-mini", "gpt-5.3-codex-spark"])(
77
"should return specified model when a valid model id is provided: %s",
88
(apiModelId) => {
99
const handler = new OpenAiCodexHandler({ apiModelId })
@@ -23,4 +23,14 @@ describe("OpenAiCodexHandler.getModel", () => {
2323
expect(model.id).toBe("gpt-5.3-codex")
2424
expect(model.info).toBeDefined()
2525
})
26+
27+
it("should use Spark-specific limits and capabilities", () => {
28+
const handler = new OpenAiCodexHandler({ apiModelId: "gpt-5.3-codex-spark" })
29+
const model = handler.getModel()
30+
31+
expect(model.id).toBe("gpt-5.3-codex-spark")
32+
expect(model.info.contextWindow).toBe(128000)
33+
expect(model.info.maxTokens).toBe(8192)
34+
expect(model.info.supportsImages).toBe(false)
35+
})
2636
})

0 commit comments

Comments
 (0)