no eol separator after replaced sys prompt

This commit is contained in:
Stefan Daniel Schwarz 2023-08-24 20:30:24 +02:00
parent 56a6398189
commit 4b389eba61
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ export function formatInstructModeSystemPrompt(systemPrompt){
const separator = power_user.instruct.wrap ? '\n' : '';
if (power_user.instruct.system_sequence.includes("{{sys}}")) {
return power_user.instruct.system_sequence.replace(/{{sys}}/gi, systemPrompt) + separator;
return power_user.instruct.system_sequence.replace(/{{sys}}/gi, systemPrompt);
} else {
return power_user.instruct.system_sequence + separator + systemPrompt;
}