diff --git a/public/script.js b/public/script.js
index 169ad3937..b7bdf27bc 100644
--- a/public/script.js
+++ b/public/script.js
@@ -283,9 +283,8 @@ const system_messages = {
mes: [
'Hi there! The following chat formatting commands are supported:',
'
',
- '- *text* – format the actions that your character does
',
- '- {{text}} – set the behavioral bias for the AI character
',
- '- {{}} – cancel a previously set bias
',
+ '- {{text}} – sets a permanent behavioral bias for the AI
',
+ '- {{}} – removes any active character bias
',
'
',
].join('')
},
@@ -5334,16 +5333,16 @@ $(document).ready(function () {
try {
var edit_mes_id = $(this).closest(".mes").attr("mesid");
var text = chat[edit_mes_id]["mes"];
- navigator.clipboard.writeText(text);
- const copiedMsg = document.createElement("div");
- copiedMsg.classList.add('code-copied');
- copiedMsg.innerText = "Copied!";
- copiedMsg.style.top = `${event.clientY - 55}px`;
- copiedMsg.style.left = `${event.clientX - 55}px`;
- document.body.append(copiedMsg);
- setTimeout(() => {
- document.body.removeChild(copiedMsg);
- }, 1000);
+ navigator.clipboard.writeText(text);
+ const copiedMsg = document.createElement("div");
+ copiedMsg.classList.add('code-copied');
+ copiedMsg.innerText = "Copied!";
+ copiedMsg.style.top = `${event.clientY - 55}px`;
+ copiedMsg.style.left = `${event.clientX - 55}px`;
+ document.body.append(copiedMsg);
+ setTimeout(() => {
+ document.body.removeChild(copiedMsg);
+ }, 1000);
} catch (err) {
console.error('Failed to copy: ', err);
}
@@ -5573,7 +5572,7 @@ $(document).ready(function () {
console.log('No secret key saved for NovelAI');
return;
}
-
+
$("#api_loading_novel").css("display", "inline-block");
$("#api_button_novel").css("display", "none");
is_get_status_novel = true;
diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js
index 91587e9a5..54a167c36 100644
--- a/public/scripts/extensions/stable-diffusion/index.js
+++ b/public/scripts/extensions/stable-diffusion/index.js
@@ -34,11 +34,11 @@ const generationMode = {
}
const triggerWords = {
- [generationMode.CHARACTER]: ['yourself', 'you', 'bot', 'AI', 'character'],
- [generationMode.USER]: ['me', 'user', 'myself'],
- [generationMode.SCENARIO]: ['scenario', 'world', 'surroundings', 'scenery'],
- [generationMode.NOW]: ['now', 'last'],
- [generationMode.FACE]: ['selfie', 'face'],
+ [generationMode.CHARACTER]: ['you'],
+ [generationMode.USER]: ['me'],
+ [generationMode.SCENARIO]: ['scene'],
+ [generationMode.NOW]: ['last'],
+ [generationMode.FACE]: ['face'],
}
@@ -58,15 +58,16 @@ const quietPrompts = {
}
const helpString = [
- `${m('what')} – requests an SD generation. Supported "what" arguments:`,
+ `${m('(argument)')} – requests SD to make an image. Supported arguments:`,
'',
- `- ${m(j(triggerWords[generationMode.CHARACTER]))} – AI character image
`,
- `- ${m(j(triggerWords[generationMode.USER]))} – user character image
`,
- `- ${m(j(triggerWords[generationMode.SCENARIO]))} – world scenario image
`,
- `- ${m(j(triggerWords[generationMode.FACE]))} – character face-up selfie image
`,
+ `- ${m(j(triggerWords[generationMode.CHARACTER]))} – AI character full body selfie
`,
+ `- ${m(j(triggerWords[generationMode.FACE]))} – AI character face-only selfie
`,
+ `- ${m(j(triggerWords[generationMode.USER]))} – user character full body selfie
`,
+ `- ${m(j(triggerWords[generationMode.SCENARIO]))} – visual recap of the whole chat scenario
`,
`- ${m(j(triggerWords[generationMode.NOW]))} – visual recap of the last chat message
`,
'
',
- `Anything else would trigger a "free mode" with AI describing whatever you prompted.`,
+ `Anything else would trigger a "free mode" to make SD generate whatever you prompted.
+ example: '/sd apple tree' would generate a picture of an apple tree.`,
].join('
');
const defaultSettings = {
@@ -422,7 +423,7 @@ $("#sd_dropdown [id]").on("click", function () {
});
jQuery(async () => {
- getContext().registerSlashCommand('sd', generatePicture, ['picture', 'image'], helpString, true, true);
+ getContext().registerSlashCommand('sd', generatePicture, [], helpString, true, true);
const settingsHtml = `