Comment tweaks

This commit is contained in:
city-unit 2023-08-20 00:33:37 -04:00
parent 3ce8343016
commit f70baff95e
2 changed files with 2 additions and 5 deletions

View File

@ -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<void>} - 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<void>} - 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', {

View File

@ -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<void>} - 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];