Skip to content

Commit 2a65db6

Browse files
authored
Merge pull request RooCodeInc#1444 from moqimoqidea/patch-1
fix claude 3.7 think enhance prompt problem.
2 parents 46814df + aa70d75 commit 2a65db6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/providers/anthropic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
214214
}
215215

216216
async completePrompt(prompt: string) {
217-
let { id: modelId, maxTokens, thinking, temperature } = this.getModel()
217+
let { id: modelId, temperature } = this.getModel()
218218

219219
const message = await this.client.messages.create({
220220
model: modelId,
221-
max_tokens: maxTokens ?? ANTHROPIC_DEFAULT_MAX_TOKENS,
222-
thinking,
221+
max_tokens: ANTHROPIC_DEFAULT_MAX_TOKENS,
222+
thinking: undefined,
223223
temperature,
224224
messages: [{ role: "user", content: prompt }],
225225
stream: false,

0 commit comments

Comments
 (0)