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.
Parameters
Section titled “Parameters”requested
Section titled “requested”unknown
levels
Section titled “levels”readonly ReasoningLevel[]
Returns
Section titled “Returns”ReasoningLevel | undefined