From 8f2c0acc7e2fa973ae10d9e69db2c424348e8a41 Mon Sep 17 00:00:00 2001 From: Kfir Amar Date: Sat, 14 Mar 2026 20:33:47 +0200 Subject: [PATCH] fix(codex): advertise gpt-5.4 models Add gpt-5.4 to the Codex model registry so OmniRoute exposes cx/gpt-5.4 and codex/gpt-5.4 in its model catalog. Includes a focused regression test for model resolution. --- open-sse/config/providerRegistry.ts | 1 + tests/unit/plan3-p0.test.mjs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.ts index da83388092..cd0f2b7959 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 4b77c4b124..c6dc9918bf 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);