Merge pull request #969 from StefanDanielSchwarz/end-prompt-with-newline

End Prompt with Newline
This commit is contained in:
Cohee 2023-08-19 18:04:01 +03:00 committed by GitHub
commit 53dab00abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1097,7 +1097,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);