mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't add extra space on non-instruct continue
This commit is contained in:
@ -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
|
// Add a space if prompt cache doesn't start with one
|
||||||
if (!/^\s/.test(promptCache) && !isInstruct) {
|
if (!/^\s/.test(promptCache) && !isInstruct && !isContinue) {
|
||||||
promptCache = ' ' + promptCache;
|
promptCache = ' ' + promptCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user