Format Python code with psf/black push

github-actions 2 years ago
parent c83de410cf
commit 6b6f2dd384

@ -629,8 +629,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
# Check if any of the message author's role names are in BOT_TAGGABLE_ROLES, if not, return
if BOT_TAGGABLE_ROLES != [None] and not any(
role.name.lower() in BOT_TAGGABLE_ROLES
for role in message.author.roles
role.name.lower() in BOT_TAGGABLE_ROLES for role in message.author.roles
):
return

@ -377,7 +377,8 @@ class Search:
if ctx:
await self.try_edit(
in_progress_message, self.build_search_determining_price_embed(query_refined_text)
in_progress_message,
self.build_search_determining_price_embed(query_refined_text),
)
await self.loop.run_in_executor(
@ -392,7 +393,8 @@ class Search:
),
)
total_usage_price = await self.usage_service.get_price(
llm_predictor_mock.last_token_usage, chatgpt=True,
llm_predictor_mock.last_token_usage,
chatgpt=True,
) + await self.usage_service.get_price(
embed_model_mock.last_token_usage, embeddings=True
)

Loading…
Cancel
Save