diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.ts index da833880..cd0f2b79 100644 --- a/open-sse/config/providerRegistry.ts +++ b/open-sse/config/providerRegistry.ts @@ -186,6 +186,7 @@ export const REGISTRY: Record = { tokenUrl: "https://auth.openai.com/oauth/token", }, models: [ + { id: "gpt-5.4", name: "GPT 5.4" }, { id: "gpt-5.3-codex", name: "GPT 5.3 Codex" }, { id: "gpt-5.3-codex-xhigh", name: "GPT 5.3 Codex (xHigh)" }, { id: "gpt-5.3-codex-high", name: "GPT 5.3 Codex (High)" }, diff --git a/tests/unit/plan3-p0.test.mjs b/tests/unit/plan3-p0.test.mjs index 4b77c4b1..c6dc9918 100644 --- a/tests/unit/plan3-p0.test.mjs +++ b/tests/unit/plan3-p0.test.mjs @@ -23,6 +23,12 @@ test("getModelInfoCore keeps openai fallback for gpt-4o", async () => { assert.equal(info.model, "gpt-4o"); }); +test("getModelInfoCore resolves gpt-5.4 to codex", async () => { + const info = await getModelInfoCore("gpt-5.4", {}); + assert.equal(info.provider, "codex"); + assert.equal(info.model, "gpt-5.4"); +}); + test("getModelInfoCore returns explicit ambiguity metadata for ambiguous unprefixed model", async () => { const info = await getModelInfoCore("claude-haiku-4.5", {}); assert.equal(info.provider, null);