Skip to content

Commit c9e1ad7

Browse files
authored
Add reasoning toggle for Grok 4 models (#1061)
2 parents 7acc150 + 9110841 commit c9e1ad7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib/providers/model-settings.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ export function getModelVariants(model: string): OpenCodeSettings['variants'] {
7373
high: { reasoning: { enabled: true, effort: 'high' } },
7474
};
7575
}
76+
if (model.startsWith('x-ai/grok-4')) {
77+
return {
78+
'non-reasoning': { reasoning: { enabled: false } },
79+
reasoning: { reasoning: { enabled: true } },
80+
};
81+
}
7682
return undefined;
7783
}
7884

0 commit comments

Comments
 (0)