Skip to content

Conversation

@melihmucuk
Copy link
Contributor

Summary

When changing thinking level (ctrl+t) for the main model, the selected variant (e.g., reasoningEffort) was incorrectly applied to small model calls (title/summary generation). This caused API errors when the small model didn't support the parameter.

Problem

small=true agent=title params={"options":{"reasoningEffort":"low"}}
ERROR "Model grok-code does not support parameter reasoningEffort."

The variant from input.user.variant was applied regardless of whether small: true was set.

Fix

Skip variant application when small: true in llm.ts:

// Before
const variant = input.model.variants && input.user.variant ? input.model.variants[input.user.variant] : {}
// After
const variant = !input.small && input.model.variants && input.user.variant ? input.model.variants[input.user.variant] : {}

@rekram1-node rekram1-node merged commit 554572b into anomalyco:dev Jan 4, 2026
4 of 5 checks passed
@melihmucuk melihmucuk deleted the fix/small-model-thinking-variant branch January 4, 2026 21:37
ruuxi pushed a commit to ruuxi/ngmicode that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants