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

Function gpt5Version

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

Source from the content-addressed store, hash-verified

543const GPT5_VERSIONED_PRO_RE = /(?:^|\/)gpt-5[.-]\d+[.-]pro(?:[.-]|$)/
544
545function gpt5Version(apiId: string) {
546 return Number(GPT5_VERSION_RE.exec(apiId)?.[1]) || undefined
547}
548
549function versionedGpt5ReasoningEfforts(apiId: string) {
550 if (GPT5_VERSIONED_PRO_RE.test(apiId)) return OPENAI_GPT5_PRO_2_PLUS_EFFORTS

Callers 3

gpt5ChatReasoningEffortsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected