Fix free mode extension on empty chats when {{charPrefix}} is used

This commit is contained in:
Cohee 2024-10-01 14:24:27 +03:00
parent 5363529068
commit 42d24dbc47

View File

@ -2445,7 +2445,7 @@ function generateFreeModePrompt(trigger, combineNegatives) {
return message.original_avatar.replace(/\.[^/.]+$/, '');
}
}
throw new Error('No usable messages found.');
return '';
};
const key = getLastCharacterKey();