Move reasoning continue regex depth adjustment

37819df542a412dbd2d5d3e515accb067cc4e4e3

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

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -3958,7 +3958,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
39583958
3959 const promptReasoning = new PromptReasoning();3959 const promptReasoning = new PromptReasoning();
3960 for (let i = coreChat.length - 1; i >= 0; i--) {3960 for (let i = coreChat.length - 1; i >= 0; i--) {
3961 const depth = coreChat.length - i - 1;3961 const depth = coreChat.length - i - (isContinue ? 2 : 1);
3962 const isPrefix = isContinue && i === coreChat.length - 1;3962 const isPrefix = isContinue && i === coreChat.length - 1;
3963 coreChat[i] = {3963 coreChat[i] = {
3964 ...coreChat[i],3964 ...coreChat[i],