Allow comma after "char" prefix

This commit is contained in:
Cohee 2023-12-17 02:34:42 +02:00
parent 14400b05f9
commit 7fb9d9bfc1
1 changed files with 1 additions and 1 deletions

View File

@ -1737,7 +1737,7 @@ async function getPrompt(generationType, message, trigger, quietPrompt) {
*/
function generateFreeModePrompt(trigger) {
return trigger
.replace(/(?:^char(\s)|\{\{charPrefix\}\})/gi, (_, suffix) => {
.replace(/(?:^char(\s|,)|\{\{charPrefix\}\})/gi, (_, suffix) => {
const getLastCharacterKey = () => {
if (typeof this_chid !== 'undefined') {
return getCharaFilename(this_chid);