From 6b6f2dd3847c32013f807a78e3ef3a00a59fc3f3 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sun, 5 Mar 2023 01:33:49 +0000 Subject: [PATCH] Format Python code with psf/black push --- cogs/text_service_cog.py | 3 +-- models/search_model.py | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cogs/text_service_cog.py b/cogs/text_service_cog.py index e6a8acf..7b0812f 100644 --- a/cogs/text_service_cog.py +++ b/cogs/text_service_cog.py @@ -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 diff --git a/models/search_model.py b/models/search_model.py index 7166894..27ee284 100644 --- a/models/search_model.py +++ b/models/search_model.py @@ -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 )