Allow comma after "char" prefix
This commit is contained in:
parent
14400b05f9
commit
7fb9d9bfc1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue