Skip to content

Function: remapReasoning()

remapReasoning(requested, levels): ReasoningLevel | undefined

Remap a requested effort onto the nearest supported ReasoningLevel.

none / off (and disable aliases) are not a low budget: when the model requires reasoning, they snap to the supported level closest to ReasoningLevel.Medium. Other requests prefer the highest allowed level at or below the request, otherwise the lowest allowed level.

Returns undefined when the request cannot be parsed or levels is empty.

unknown

readonly ReasoningLevel[]

ReasoningLevel | undefined