Don't add extra space on non-instruct continue

This commit is contained in:
Cohee 2023-11-22 16:34:25 +02:00
parent 73eeab9ace
commit 57f303223b
1 changed files with 1 additions and 1 deletions

View File

@ -3340,7 +3340,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
}
// Add a space if prompt cache doesn't start with one
if (!/^\s/.test(promptCache) && !isInstruct) {
if (!/^\s/.test(promptCache) && !isInstruct && !isContinue) {
promptCache = ' ' + promptCache;
}