mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 17:10:45 +01:00
Fix free mode extension on empty chats when {{charPrefix}} is used
This commit is contained in:
parent
5363529068
commit
42d24dbc47
@ -2445,7 +2445,7 @@ function generateFreeModePrompt(trigger, combineNegatives) {
|
|||||||
return message.original_avatar.replace(/\.[^/.]+$/, '');
|
return message.original_avatar.replace(/\.[^/.]+$/, '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new Error('No usable messages found.');
|
return '';
|
||||||
};
|
};
|
||||||
|
|
||||||
const key = getLastCharacterKey();
|
const key = getLastCharacterKey();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user