Fix continue and bias spacing inconsistencies

This commit is contained in:
Cohee 2024-03-23 17:51:53 +02:00
parent 607df2f555
commit 1ff0e89529
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -354,7 +354,7 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
let text = includeNames ? (separator + sequence + separator + `${name}:`) : (separator + sequence);
if (!isImpersonate && promptBias) {
text += (includeNames ? promptBias : (separator + promptBias));
text += (includeNames ? promptBias : (separator + promptBias.trimStart()));
}
return (power_user.instruct.wrap ? text.trimEnd() : text) + (includeNames ? '' : separator);