Format Python code with psf/black push

github-actions 2 years ago
parent 96c69c417f
commit ffa23155c0

@ -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),
)

@ -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)

Loading…
Cancel
Save