diff --git a/public/script.js b/public/script.js index 83a587d2d..4c7e06f88 100644 --- a/public/script.js +++ b/public/script.js @@ -3514,7 +3514,7 @@ async function Generate(type, { automatic_trigger, force_name2, quiet_prompt, qu // Cohee: This removes a newline from the end of the last message in the context // Last prompt line will add a newline if it's not a continuation if (i === arrMes.length - 1 && type !== 'continue') { - if (!isInstruct || power_user.instruct.wrap) { + if (!isInstruct || (power_user.instruct.wrap && type !== 'quiet')) { item = item.replace(/\n?$/, ''); } }