Skip to content

Commit 9110841

Browse files
committed
Add reasoning toggle for Grok 4 models
1 parent c975a72 commit 9110841

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
@@ -72,6 +72,12 @@ export function getModelVariants(model: string): OpenCodeSettings['variants'] {
7272
high: { reasoning: { enabled: true, effort: 'high' } },
7373
};
7474
}
75+
if (model.startsWith('x-ai/grok-4')) {
76+
return {
77+
'non-reasoning': { reasoning: { enabled: false } },
78+
reasoning: { reasoning: { enabled: true } },
79+
};
80+
}
7581
return undefined;
7682
}
7783

0 commit comments

Comments
 (0)