mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-18 12:47:27 +02:00
Fix continue and bias spacing inconsistencies
This commit is contained in:
parent
607df2f555
commit
1ff0e89529
@ -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
|
// Add a space if prompt cache doesn't start with one
|
||||||
if (!/^\s/.test(promptCache) && !isInstruct && !isContinue) {
|
if (!/^\s/.test(promptCache) && !isInstruct) {
|
||||||
promptCache = ' ' + promptCache;
|
promptCache = ' ' + promptCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
|
|||||||
let text = includeNames ? (separator + sequence + separator + `${name}:`) : (separator + sequence);
|
let text = includeNames ? (separator + sequence + separator + `${name}:`) : (separator + sequence);
|
||||||
|
|
||||||
if (!isImpersonate && promptBias) {
|
if (!isImpersonate && promptBias) {
|
||||||
text += (includeNames ? promptBias : (separator + promptBias));
|
text += (includeNames ? promptBias : (separator + promptBias.trimStart()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (power_user.instruct.wrap ? text.trimEnd() : text) + (includeNames ? '' : separator);
|
return (power_user.instruct.wrap ? text.trimEnd() : text) + (includeNames ? '' : separator);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user