| 2550 | */ | 2550 | */ |
| 2551 | function generateFreeModePrompt(trigger, combineNegatives) { | 2551 | function generateFreeModePrompt(trigger, combineNegatives) { |
| 2552 | return trigger | 2552 | return trigger |
| 2553 | .replace(/^char(\s|,)|\{\{charPrefix}}/gi, (_, suffix) => { | 2553 | .replace(/^char(\s|,)|{{charPrefix}}/gi, (_, suffix) => { |
| 2554 | const getLastCharacterKey = () => { | 2554 | const getLastCharacterKey = () => { |
| 2555 | if (typeof this_chid !== 'undefined') { | 2555 | if (typeof this_chid !== 'undefined') { |
| 2556 | return getCharaFilename(this_chid); | 2556 | return getCharaFilename(this_chid); |