diff --git a/cogs/gpt_3_commands_and_converser.py b/cogs/gpt_3_commands_and_converser.py index e7f0c40..9caf59b 100644 --- a/cogs/gpt_3_commands_and_converser.py +++ b/cogs/gpt_3_commands_and_converser.py @@ -651,7 +651,10 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"): # If conversing, the prompt to send is the history, otherwise, it's just the prompt await self.encapsulated_send( - message, prompt if message.author.id not in self.conversating_users else "".join(self.conversating_users[message.author.id].history) + message, + prompt + if message.author.id not in self.conversating_users + else "".join(self.conversating_users[message.author.id].history), ) diff --git a/models/openai_model.py b/models/openai_model.py index fa9898d..8aeb46b 100644 --- a/models/openai_model.py +++ b/models/openai_model.py @@ -346,7 +346,6 @@ class Model: print("The prompt about to be sent is " + prompt) - response = openai.Completion.create( model=Models.DAVINCI if any(role.name in self.DAVINCI_ROLES for role in message.author.roles)