From f70baff95e07ae3308dd0e75639b4b5885f4ad61 Mon Sep 17 00:00:00 2001 From: city-unit <140349364+city-unit@users.noreply.github.com> Date: Sun, 20 Aug 2023 00:33:37 -0400 Subject: [PATCH] Comment tweaks --- public/scripts/extensions/stable-diffusion/index.js | 6 ++---- public/scripts/group-chats.js | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 247dea357..35bc0165d 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -667,14 +667,13 @@ async function sendGenerationRequest(generationType, prompt, characterName=null, * Generates an "extras" image using a provided prompt and other settings, * then saves the generated image and either invokes a callback or sends a message with the image. * - * @param {string} prompt - The main instruction or question used to guide the image generation. + * @param {string} prompt - The main instruction used to guide the image generation. * @param {string} prefix - Additional context or prefix to guide the image generation. * @param {string} characterName - The name used to determine the sub-directory for saving. * @param {function} [callback] - Optional callback function invoked with the prompt and saved image. * If not provided, `sendMessage` is called instead. * * @returns {Promise} - A promise that resolves when the image generation and processing are complete. - * The function doesn't explicitly return a value, but based on the results, either a callback is called, a message is sent, or a popup is shown. */ async function generateExtrasImage(prompt, prefix, characterName, callback) { console.debug(extension_settings.sd); @@ -711,14 +710,13 @@ async function generateExtrasImage(prompt, prefix, characterName, callback) { * Generates a "horde" image using the provided prompt and configuration settings, * then saves the generated image and either invokes a callback or sends a message with the image. * - * @param {string} prompt - The main instruction or question used to guide the image generation. + * @param {string} prompt - The main instruction used to guide the image generation. * @param {string} prefix - Additional context or prefix to guide the image generation. * @param {string} characterName - The name used to determine the sub-directory for saving. * @param {function} [callback] - Optional callback function invoked with the prompt and saved image. * If not provided, `sendMessage` is called instead. * * @returns {Promise} - A promise that resolves when the image generation and processing are complete. - * The function doesn't explicitly return a value, but based on the results, either a callback is called, a message is sent, or a toastr error is shown. */ async function generateHordeImage(prompt, prefix, characterName, callback) { const result = await fetch('/horde_generateimage', { diff --git a/public/scripts/group-chats.js b/public/scripts/group-chats.js index f9767c81a..b7dc52de0 100644 --- a/public/scripts/group-chats.js +++ b/public/scripts/group-chats.js @@ -1143,7 +1143,6 @@ function select_group_chats(groupId, skipAnimation) { * @param {Event} event - The event triggered by selecting a file input, containing the image file to upload. * * @returns {Promise} - A promise that resolves when the processing and upload is complete. - * No return value, but internal state might be updated based on the processing result. */ async function uploadGroupAvatar(event) { const file = event.target.files[0];