From ffa23155c0faac5cb549eb5b48a0f70fc0ca861b Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 20 Dec 2022 12:01:34 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/gpt_3_commands_and_converser.py | 5 ++++- models/openai_model.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) 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)