mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
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) {
|
function generateFreeModePrompt(trigger) {
|
||||||
return trigger
|
return trigger
|
||||||
.replace(/(?:^char(\s)|\{\{charPrefix\}\})/gi, (_, suffix) => {
|
.replace(/(?:^char(\s|,)|\{\{charPrefix\}\})/gi, (_, suffix) => {
|
||||||
const getLastCharacterKey = () => {
|
const getLastCharacterKey = () => {
|
||||||
if (typeof this_chid !== 'undefined') {
|
if (typeof this_chid !== 'undefined') {
|
||||||
return getCharaFilename(this_chid);
|
return getCharaFilename(this_chid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user