Merge pull request #1557 from SillyTavern/Deathspike/release
Allow comma after "char" prefix
This commit is contained in:
commit
e0531f85dc
|
@ -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