mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add missing space on continue
This commit is contained in:
@ -2694,6 +2694,11 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
||||
promptCache = promptCache.replace(promptBias, '');
|
||||
}
|
||||
|
||||
// Add a space if prompt cache doesn't start with one
|
||||
if (!/^\s/.test(promptCache) && !isInstruct) {
|
||||
promptCache = ' ' + promptCache;
|
||||
}
|
||||
|
||||
return promptCache;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user