Large Transaction Update
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = {
|
||||
const maxTokens = interaction.options.getNumber('tokens') ?? undefined;
|
||||
const discordAccountId = interaction.member.id;
|
||||
try {
|
||||
submitTextPromptTransaction(promptText, temperature, maxTokens, discordAccountId, async (err, result) => {
|
||||
submitTextPromptTransaction(promptText, temperature, maxTokens, discordAccountId, interaction, this, async (err, result) => {
|
||||
if (err) throw err;
|
||||
|
||||
const gptEmbed = new EmmeliaEmbedBuilder()
|
||||
|
||||
@@ -42,7 +42,7 @@ module.exports = {
|
||||
const size = interaction.options.getString('size') ?? undefined;
|
||||
const discordAccountId = interaction.member.id;
|
||||
try {
|
||||
submitImagePromptTransaction(promptText, discordAccountId, images, size, async (err, imageResults) => {
|
||||
submitImagePromptTransaction(promptText, discordAccountId, images, size, interaction, this, async (err, imageResults) => {
|
||||
if (err) throw err;
|
||||
|
||||
log.DEBUG("Image Results: ", imageResults)
|
||||
@@ -51,7 +51,7 @@ module.exports = {
|
||||
.setColor(0x0099FF)
|
||||
.setTitle(`New Image Result`)
|
||||
.setDescription(`${interaction.member.user} sent the prompt: '${promptText}'`)
|
||||
.addFields({ name: 'Tokens Used', value: `${this.defaultTokenUsage}`, inline: true })
|
||||
.addFields({ name: 'Tokens Used', value: `${imageResults.totalTokens}`, inline: true })
|
||||
|
||||
const imagesInResult = Array(imageResults.results.data).length
|
||||
|
||||
|
||||
Reference in New Issue
Block a user