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

Function gpt5ChatReasoningEfforts

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

Source from the content-addressed store, hash-verified

563}
564
565function 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

Callers 2

openaiReasoningEffortsFunction · 0.85

Calls 1

gpt5VersionFunction · 0.85

Tested by

no test coverage detected