You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(variants): drop redundant thinking variant when effort enum present
Claude models via Cursor expose both a boolean thinking param and an
effort enum. buildModelVariants emitted a variant for each, surfacing a
stray thinking entry alongside low/medium/high/xhigh/max. Standard
opencode providers (models.dev reasoning_options.effort) show only the
five effort levels, so the boolean variant broke parity.
Add a hasEffortEnum pre-pass; when true, skip the boolean reasoning
variant. Effort alone enables reasoning (no thinking:true baked in).
Boolean-only reasoning models still surface their single param-named
variant. Order-independent. fast toggle and defaultModelParams untouched.
Tests: updated dual-param expectation, added order-independence,
production-shape+fast composition, zero-value-enum guard, and pinned
current mixed-shape param behavior.
0 commit comments