diff --git a/cogs/search_service_cog.py b/cogs/search_service_cog.py index 01266fc..5a24182 100644 --- a/cogs/search_service_cog.py +++ b/cogs/search_service_cog.py @@ -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) diff --git a/services/text_service.py b/services/text_service.py index f225535..2fac527 100644 --- a/services/text_service.py +++ b/services/text_service.py @@ -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