(apiId: string)
| 555 | } |
| 556 | |
| 557 | function gpt5CodexReasoningEfforts(apiId: string) { |
| 558 | if (!GPT5_FAMILY_RE.test(apiId) || !apiId.includes("codex")) return undefined |
| 559 | const version = gpt5Version(apiId) |
| 560 | if (version !== undefined && version >= 3) return OPENAI_GPT5_CODEX_3_PLUS_EFFORTS |
| 561 | if (apiId.includes("codex-max") || (version !== undefined && version >= 2)) return OPENAI_GPT5_CODEX_XHIGH_EFFORTS |
| 562 | return WIDELY_SUPPORTED_EFFORTS |
| 563 | } |
| 564 | |
| 565 | function gpt5ChatReasoningEfforts(apiId: string) { |
| 566 | if (!GPT5_FAMILY_RE.test(apiId) || !apiId.includes("-chat")) return undefined |
no test coverage detected