mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: remove Grok-4 reasoning skip logic
This commit is contained in:
parent
575d71c23b
commit
73c874a0cf
1 changed files with 0 additions and 10 deletions
|
|
@ -124,11 +124,6 @@ export class OpenRouterHandler extends BaseProvider implements SingleCompletionH
|
|||
}
|
||||
}
|
||||
|
||||
private shouldSkipReasoningForModel(modelId: string): boolean {
|
||||
// Grok-4 models shouldn't use reasoning by default
|
||||
return modelId.includes("grok-4")
|
||||
}
|
||||
|
||||
override async *createMessage(
|
||||
systemPrompt: string,
|
||||
messages: Anthropic.Messages.MessageParam[],
|
||||
|
|
@ -150,11 +145,6 @@ export class OpenRouterHandler extends BaseProvider implements SingleCompletionH
|
|||
reasoning = { exclude: true }
|
||||
}
|
||||
|
||||
// Skip reasoning for Grok-4 as mentioned in the PR description
|
||||
if (this.shouldSkipReasoningForModel(modelId) && typeof reasoning === "undefined") {
|
||||
reasoning = { exclude: true }
|
||||
}
|
||||
|
||||
// Convert Anthropic messages to OpenAI format.
|
||||
let openAiMessages: OpenAI.Chat.ChatCompletionMessageParam[] = [
|
||||
{ role: "system", content: systemPrompt },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue