Don't trim the end of instruct last prompt line if newline wrap mode is disabled

This commit is contained in:
Cohee 2023-10-24 16:02:24 +03:00
parent 8f118f140f
commit 1bf6d6d9f2
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
text += (includeNames ? promptBias : (separator + promptBias)); text += (includeNames ? promptBias : (separator + promptBias));
} }
return text.trimEnd() + (includeNames ? '' : separator); return (power_user.instruct.wrap ? text.trimEnd() : text) + (includeNames ? '' : separator);
} }
/** /**