diff --git a/public/script.js b/public/script.js index 06a01e131..9ebc97aa6 100644 --- a/public/script.js +++ b/public/script.js @@ -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; } diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index a3c56ca4a..8da67ed93 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -16,8 +16,8 @@ const j = a => a.join(' / '); const p = a => `
${a}
` 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 = [