(apiId: string)
| 563 | } |
| 564 | |
| 565 | function gpt5ChatReasoningEfforts(apiId: string) { |
| 566 | if (!GPT5_FAMILY_RE.test(apiId) || !apiId.includes("-chat")) return undefined |
| 567 | return gpt5Version(apiId) === undefined ? [] : OPENAI_GPT5_CHAT_EFFORTS |
| 568 | } |
| 569 | |
| 570 | // Computes the reasoning_effort tiers an OpenAI (or OpenAI-compatible upstream |
| 571 | // routed through it, e.g. cf-ai-gateway) model exposes. Effort order: weakest |
no test coverage detected