Fix whitespace issues

This commit is contained in:
Stefan Daniel Schwarz 2023-08-18 21:18:54 +02:00
parent 7e5d08874f
commit 26e2b0c8fa
1 changed files with 3 additions and 3 deletions

View File

@ -1070,8 +1070,8 @@ export function formatInstructModeChat(name, mes, isUser, isNarrator, forceAvata
const separator = power_user.instruct.wrap ? '\n' : ''; const separator = power_user.instruct.wrap ? '\n' : '';
const separatorSequence = power_user.instruct.separator_sequence && !isUser const separatorSequence = power_user.instruct.separator_sequence && !isUser
? power_user.instruct.separator_sequence ? power_user.instruct.separator_sequence
: (power_user.instruct.wrap ? '\n' : ''); : separator;
const textArray = includeNames ? [sequence, `${name}: ${mes}`, separatorSequence] : [sequence, mes, separatorSequence]; const textArray = includeNames ? [sequence, `${name}: ${mes}` + separatorSequence] : [sequence, mes + separatorSequence];
const text = textArray.filter(x => x).join(separator); const text = textArray.filter(x => x).join(separator);
return text; return text;
} }