Format Python code with psf/black push

github-actions 1 year ago
parent 8f4855cacc
commit 012225c6d6

@ -175,7 +175,9 @@ class SearchService(discord.Cog, name="SearchService"):
custom_view=SearchView(ctx, self, query_response_message),
)
self.redo_users[ctx.user.id] = RedoSearchUser(ctx, query, search_scope, nodes, response_mode)
self.redo_users[ctx.user.id] = RedoSearchUser(
ctx, query, search_scope, nodes, response_mode
)
await paginator.respond(ctx.interaction)

@ -100,7 +100,7 @@ class TextService:
conversation_id = ctx.channel.id
# Create an embedding and timestamp for the prompt
#new_prompt = prompt.encode("ascii", "ignore").decode()
# new_prompt = prompt.encode("ascii", "ignore").decode()
new_prompt = unidecode.unidecode(new_prompt)
prompt_less_author = f"{new_prompt} <|endofstatement|>\n"
@ -109,7 +109,7 @@ class TextService:
)
new_prompt = f"\n{user_displayname}: {new_prompt} <|endofstatement|>\n"
#new_prompt = new_prompt.encode("ascii", "ignore").decode()
# new_prompt = new_prompt.encode("ascii", "ignore").decode()
new_prompt = unidecode.unidecode(new_prompt)
timestamp = int(
@ -342,7 +342,7 @@ class TextService:
"\n" + BOT_NAME + str(response_text) + "<|endofstatement|>\n"
)
#response_text = response_text.encode("ascii", "ignore").decode()
# response_text = response_text.encode("ascii", "ignore").decode()
response_text = unidecode.unidecode(response_text)
# Print the current timestamp

Loading…
Cancel
Save