End Prompt with Newline

This change adds a trailing newline to the instruct mode prompt when "Wrap Sequences with Newline" is on and "Include Names" is off. (When "Include Names" is on, "Wrap Sequences with Newline" is already applied before.)
This commit is contained in:
SDS
2023-08-19 13:54:09 +02:00
committed by GitHub
parent 3acd0a590e
commit 49c6676f72

View File

@ -1099,7 +1099,7 @@ export function formatInstructModePrompt(name, isImpersonate, promptBias, name1,
text += (includeNames ? promptBias : (separator + promptBias));
}
return text.trimEnd();
return text.trimEnd() + (includeNames ? '' : separator);
}
const sortFunc = (a, b) => power_user.sort_order == 'asc' ? compareFunc(a, b) : compareFunc(b, a);