{"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":"Error \"Unsupported ChatGPT Web (Codex) model: ${model}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/chatgpt-web-codex/models.ts:20 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}