Compare commits

..

2 Commits

Author SHA1 Message Date
Logan Cusano
af74c7b90d Remove unused module 2023-03-12 03:59:01 -04:00
Logan Cusano
9e2814cb2c Init branch, WIP
Needs new library to merge images
2023-03-11 23:07:48 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ module.exports = {
log.DEBUG("Images in the result: ", imagesInResult);
if (imagesInResult == 1) dalleEmbed.setImage(imageResults.results.data[0].url);
if (imagesInResult != 0) dalleEmbed.setImage(imageResults.results.data[0].url);
await interaction.editReply({ embeds: [dalleEmbed], ephemeral: false });
});

View File

@@ -140,7 +140,7 @@ exports.submitTextPromptTransaction = async (prompt, temperature, max_tokens, di
}
if (!images_to_generate) images_to_generate = 1;
if (!image_size) images_to_generate = "256x256";
if (!image_size) image_size = "256x256";
totalTokensToBeUsed = pricePerImage * images_to_generate;