Skip to content

Commit ce89bcb

Browse files
authored
fix: allow Codex Spark with Codex OAuth (anomalyco#25640)
1 parent c2b1974 commit ce89bcb

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎packages/opencode/src/plugin/codex.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ const ISSUER = "https://auth.openai.com"
1414
const CODEX_API_ENDPOINT = "https://chatgpt.com/backend-api/codex/responses"
1515
const OAUTH_PORT = 1455
1616
const OAUTH_POLLING_SAFETY_MARGIN_MS = 3000
17-
const ALLOWED_MODELS = new Set(["gpt-5.5", "gpt-5.2", "gpt-5.3-codex", "gpt-5.4", "gpt-5.4-mini"])
17+
const ALLOWED_MODELS = new Set([
18+
"gpt-5.5",
19+
"gpt-5.2",
20+
"gpt-5.3-codex",
21+
"gpt-5.3-codex-spark",
22+
"gpt-5.4",
23+
"gpt-5.4-mini",
24+
])
1825

1926
interface PkceCodes {
2027
verifier: string

0 commit comments

Comments
 (0)