From 7d1f0ba3f7e7ea57efe0413b365bd7c56a4597fd Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Fri, 7 Aug 2026 17:54:42 +0200 Subject: [PATCH] chore(models): deactivate retired openai codex models OpenAI shut down gpt-5-chat-latest, gpt-5.1-codex, gpt-5.1-codex-mini and gpt-5.2-codex on 2026-07-23 (announced 2026-04-22). Every request to them now 404s with "has been deprecated", which surfaced as 30 e2e failures spanning basic, json, reasoning, tool-call and service-tier suites. Deactivate the openai mappings only. Azure runs its own retirement schedule and still serves all three codex deployments (2027-05-15 / 2027-07-13), so those mappings stay active for BYOK users. --- packages/models/src/models/openai.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/models/src/models/openai.ts b/packages/models/src/models/openai.ts index 255d8eaa2c..9196008858 100644 --- a/packages/models/src/models/openai.ts +++ b/packages/models/src/models/openai.ts @@ -1115,6 +1115,10 @@ export const openaiModels = [ { providerId: "openai", externalId: "gpt-5-chat-latest", + // Shut down by OpenAI on 2026-07-23 (announced 2026-04-22); + // requests now 404 with "has been deprecated". Replacement is + // gpt-5.6-sol. + deactivatedAt: new Date("2026-07-23"), inputPrice: "1.25e-6", outputPrice: "10.0e-6", cachedInputPrice: "0.125e-6", @@ -1248,6 +1252,11 @@ export const openaiModels = [ { providerId: "openai", externalId: "gpt-5.1-codex", + // Shut down by OpenAI on 2026-07-23 (announced 2026-04-22); + // requests now 404 with "has been deprecated". Replacement is + // gpt-5.6-sol. The azure mapping below stays active — Azure runs + // its own schedule and does not retire this until 2027-05-15. + deactivatedAt: new Date("2026-07-23"), serviceTiers: ["priority"], serviceTierMultipliers: { priority: 2 }, inputPrice: "1.25e-6", @@ -1296,6 +1305,11 @@ export const openaiModels = [ { providerId: "openai", externalId: "gpt-5.1-codex-mini", + // Shut down by OpenAI on 2026-07-23 (announced 2026-04-22); + // requests now 404 with "has been deprecated". Replacement is + // gpt-5.6-terra. The azure mapping below stays active — Azure runs + // its own schedule and does not retire this until 2027-05-15. + deactivatedAt: new Date("2026-07-23"), inputPrice: "0.25e-6", outputPrice: "2e-6", cachedInputPrice: "0.025e-6", @@ -2334,6 +2348,11 @@ export const openaiModels = [ { providerId: "openai", externalId: "gpt-5.2-codex", + // Shut down by OpenAI on 2026-07-23 (announced 2026-04-22); + // requests now 404 with "has been deprecated". Replacement is + // gpt-5.6-sol. The azure mapping below stays active — Azure runs + // its own schedule and does not retire this until 2027-07-13. + deactivatedAt: new Date("2026-07-23"), inputPrice: "1.75e-6", outputPrice: "14.0e-6", cachedInputPrice: "0.175e-6",