Don't add extra space on non-instruct continue
This commit is contained in:
parent
73eeab9ace
commit
57f303223b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue