From 859a086b792855e73af48494a92fb7a5f9684feb Mon Sep 17 00:00:00 2001 From: kwaroran Date: Mon, 17 Mar 2025 22:15:01 +0900 Subject: [PATCH] Fix budget thinking --- src/ts/process/request.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 031a83d0..a8d14db6 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -2882,6 +2882,9 @@ async function requestClaude(arg:RequestDataArgumentExtended):Promise 0){ body.thinking.type = 'enabled' } + else if(body?.thinking?.budget_tokens === null){ + delete body.thinking + } if(systemPrompt === ''){ delete body.system