MCPcopy Index your code
hub / github.com/anomalyco/opencode / gpt5CodexReasoningEfforts

Function gpt5CodexReasoningEfforts

packages/opencode/src/provider/transform.ts:557–563  ·  view source on GitHub ↗
(apiId: string)

Source from the content-addressed store, hash-verified

555}
556
557function 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
565function gpt5ChatReasoningEfforts(apiId: string) {
566 if (!GPT5_FAMILY_RE.test(apiId) || !apiId.includes("-chat")) return undefined

Callers 2

openaiReasoningEffortsFunction · 0.85

Calls 1

gpt5VersionFunction · 0.85

Tested by

no test coverage detected