{"record":{"id":"89b87872f792bc4e","repo":"diegosouzapw/OmniRoute","slug":"unsupported-chatgpt-web-codex-model-model","errorCode":null,"errorMessage":"Unsupported ChatGPT Web (Codex) model: ${model}","messagePattern":"Unsupported ChatGPT Web \\(Codex\\) model: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/chatgpt-web-codex/models.ts","lineNumber":20,"sourceCode":"\nexport interface ChatGptWebCodexModelRoute {\n  id: string;\n  effort: ChatGptWebCodexEffort;\n  pro: boolean;\n}\n\nconst ROUTES = new Map<string, ChatGptWebCodexModelRoute>([\n  [\"instant\", { id: \"instant\", effort: \"low\", pro: false }],\n  [\"medium\", { id: \"medium\", effort: \"medium\", pro: false }],\n  [\"high\", { id: \"high\", effort: \"high\", pro: false }],\n  [\"extra-high\", { id: \"extra-high\", effort: \"xhigh\", pro: false }],\n  [\"pro\", { id: \"pro\", effort: \"max\", pro: true }],\n]);\n\nexport function requireChatGptWebCodexRoute(model: string): ChatGptWebCodexModelRoute {\n  const normalized = model.replace(/^chatgpt-web-codex\\//, \"\");\n  const route = ROUTES.get(normalized);\n  if (!route) throw new Error(`Unsupported ChatGPT Web (Codex) model: ${model}`);\n  return route;\n}\n\nexport function reasoningEffortOf(body: Record<string, unknown>): string | undefined {\n  const reasoning = body.reasoning;\n  if (reasoning && typeof reasoning === \"object\" && !Array.isArray(reasoning)) {\n    const effort = (reasoning as Record<string, unknown>).effort;\n    return typeof effort === \"string\" ? effort : undefined;\n  }\n  const effort = body.reasoning_effort;\n  return typeof effort === \"string\" ? effort : undefined;\n}\n","sourceCodeStart":2,"sourceCodeEnd":33,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/chatgpt-web-codex/models.ts#L2-L33","documentation":"Route lookup failure in requireChatGptWebCodexRoute: after normalization the requested model matches none of the five known ChatGPT Web (Codex) routes (instant, medium, high, extra-high, pro). The input at fault is the model name in the request — it is not one of the executor's route aliases.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex/models.ts:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported route aliases: instant, medium, high, extra-high, or pro","Check for typos or provider-prefix residue in the model name","Configure model aliasing/routing so clients sending other names map onto a valid route"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}