From 48c9092558d476054c70e37c156ca994ef1c7b7f Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Tue, 10 Jan 2023 03:00:50 -0500 Subject: [PATCH] keyword some stuff --- cogs/gpt_3_commands_and_converser.py | 6 +++--- cogs/image_prompt_optimizer.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index 678c79d..6db4804 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -967,12 +967,12 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"): response_message = ( await ctx.respond( response_text, - view=ConversationView(ctx, self, ctx.channel.id, custom_api_key), + view=ConversationView(ctx, self, ctx.channel.id, custom_api_key=custom_api_key), ) if from_context else await ctx.reply( response_text, - view=ConversationView(ctx, self, ctx.channel.id, custom_api_key), + view=ConversationView(ctx, self, ctx.channel.id, custom_api_key=custom_api_key), ) ) @@ -1438,7 +1438,7 @@ class ConversationView(discord.ui.View): self.converser_cog = converser_cog self.ctx = ctx self.custom_api_key= custom_api_key - self.add_item(RedoButton(self.converser_cog, self.custom_api_key)) + self.add_item(RedoButton(self.converser_cog, custom_api_key=self.custom_api_key)) if id in self.converser_cog.conversation_threads: self.add_item(EndConvoButton(self.converser_cog)) diff --git a/cogs/image_prompt_optimizer.py b/cogs/image_prompt_optimizer.py index d4bd05c..56af8fc 100644 --- a/cogs/image_prompt_optimizer.py +++ b/cogs/image_prompt_optimizer.py @@ -148,8 +148,8 @@ class OptimizeView(discord.ui.View): self.image_service_cog = image_service_cog self.deletion_queue = deletion_queue self.custom_api_key = custom_api_key - self.add_item(RedoButton(self.cog, self.image_service_cog, self.deletion_queue, self.custom_api_key)) - self.add_item(DrawButton(self.cog, self.image_service_cog, self.deletion_queue, self.custom_api_key)) + self.add_item(RedoButton(self.cog, self.image_service_cog, self.deletion_queue, custom_api_key=self.custom_api_key)) + self.add_item(DrawButton(self.cog, self.image_service_cog, self.deletion_queue, custom_api_key=self.custom_api_key)) class DrawButton(discord.ui.Button["OptimizeView"]):