From 8cb57befb3b1d44cfbdb0041fdf9100ba3e9e40a Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:30:35 +0800 Subject: [PATCH] feat(model): disable thinking for Qwen model patch --- packages/llms/src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/llms/src/utils.ts b/packages/llms/src/utils.ts index 88bd8d6..cbc08d8 100644 --- a/packages/llms/src/utils.ts +++ b/packages/llms/src/utils.ts @@ -38,6 +38,7 @@ export function modelPatch(body: Record) { if (modelName.startsWith('qwen')) { debug('Applying Qwen patch: use higher temperature for auto fixing') body.temperature = Math.max(body.temperature || 0, 1.0) + body.enable_thinking = false } if (modelName.startsWith('claude')) {