From aa70d755f80955f7bc07694241936f75f87a40f0 Mon Sep 17 00:00:00 2001 From: moqimoqidea <39821951+moqimoqidea@users.noreply.github.com> Date: Fri, 7 Mar 2025 16:28:44 +0800 Subject: [PATCH] fix claude 3.7 think enhance prompt problem. --- src/api/providers/anthropic.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/providers/anthropic.ts b/src/api/providers/anthropic.ts index 173550dc581..681ef2fc77c 100644 --- a/src/api/providers/anthropic.ts +++ b/src/api/providers/anthropic.ts @@ -214,12 +214,12 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa } async completePrompt(prompt: string) { - let { id: modelId, maxTokens, thinking, temperature } = this.getModel() + let { id: modelId, temperature } = this.getModel() const message = await this.client.messages.create({ model: modelId, - max_tokens: maxTokens ?? ANTHROPIC_DEFAULT_MAX_TOKENS, - thinking, + max_tokens: ANTHROPIC_DEFAULT_MAX_TOKENS, + thinking: undefined, temperature, messages: [{ role: "user", content: prompt }], stream: false,