Fix isPrefix for continue on reasoning

160f7431d6a27595eaba3af115680133e06d9b72

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -3959,7 +3959,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
39593959 const promptReasoning = new PromptReasoning();
39603960 for (let i = coreChat.length - 1; i >= 0; i--) {
39613961 const depth = coreChat.length - i - 1;
39623962 const isPrefix = isContinue && i === coreChat.length - (isContinue ? 2 : 1);
39633963 coreChat[i] = {
39643964 ...coreChat[i],
39653965 mes: promptReasoning.addToMessage(