From 21e311b7a401e44b5ea136f81c717b7d6d0f4ed7 Mon Sep 17 00:00:00 2001 From: Kwaroran Date: Tue, 25 Feb 2025 04:41:12 +0900 Subject: [PATCH] Remove thought input in gemini --- src/ts/process/request.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index 1459b317..c83241a2 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -1710,17 +1710,6 @@ async function requestGoogleCloudVertex(arg:RequestDataArgumentExtended):Promise }) } } - else if(chat.role === 'assistant' && arg.modelInfo.flags.includes(LLMFlags.geminiThinking)){ - reformatedChat.push({ - role: 'MODEL', - parts: [chat.thoughts?.length > 0 ? { - text: chat.thoughts.join('\n\n') - } : null, { - text: chat.content - }] - }) - } - else if(chat.role === 'assistant' || chat.role === 'user'){ reformatedChat.push({ role: chat.role === 'user' ? 'USER' : 'MODEL',