From 160f7431d6a27595eaba3af115680133e06d9b72 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 12 Mar 2025 23:55:16 +0200 Subject: [PATCH] Fix isPrefix for continue on reasoning --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b586ff767..48841d055 100644 --- a/public/script.js +++ b/public/script.js @@ -3959,7 +3959,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro const promptReasoning = new PromptReasoning(); for (let i = coreChat.length - 1; i >= 0; i--) { const depth = coreChat.length - i - 1; - const isPrefix = isContinue && i === coreChat.length - (isContinue ? 2 : 1); + const isPrefix = isContinue && i === coreChat.length - 1; coreChat[i] = { ...coreChat[i], mes: promptReasoning.addToMessage(