edited char msgs can now show (charname):

- also better SD world prompt
This commit is contained in:
RossAscends
2023-05-05 06:18:55 +09:00
parent 35c0fa9c4b
commit 5cd3d0cf81
2 changed files with 7 additions and 7 deletions

View File

@ -967,9 +967,9 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) {
});
}
if (ch_name && (forceAvatar || ch_name !== name1)) {
mes = mes.replaceAll(ch_name + ":", "");
}
/* if (ch_name && (forceAvatar || ch_name !== name1)) {
mes = mes.replaceAll(ch_name + ":", "");
} */
return mes;
}

View File

@ -16,8 +16,8 @@ const j = a => a.join(' / ');
const p = a => `<p>${a}</p>`
const postHeaders = {
'Content-Type': 'application/json',
'Bypass-Tunnel-Reminder': 'bypass',
'Content-Type': 'application/json',
'Bypass-Tunnel-Reminder': 'bypass',
};
const generationMode = {
@ -36,8 +36,8 @@ const triggerWords = {
const quietPrompts = {
[generationMode.CHARACTER]: "[Please provide a detailed description of {{char}}'s appearance]",
[generationMode.USER]: "[Please provide a detailed description of {{user}}'s appearance]",
[generationMode.SCENARIO]: '[Please provide a detailed description of your surroundings and what you are doing right now]',
[generationMode.FREE]: '[Please provide a detailed and vivid description of {0}]',
[generationMode.SCENARIO]: "[Provide a detailed description for all of the following: {{char}}'s appearance, {{char}}'s surroundings, a brief recap of recent events in the story.]",
[generationMode.FREE]: "[Please provide a detailed and vivid description of {0}]",
}
const helpString = [