Compare commits
2 Commits
8ed0b969dd
...
af74c7b90d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af74c7b90d | ||
|
|
9e2814cb2c |
@@ -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 });
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user