From 9715e3767f07e59bd6ced392e8e8534e38158355 Mon Sep 17 00:00:00 2001 From: cyclop-bot <178948048+cyclop-bot@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:21:06 -0500 Subject: [PATCH] Refactor: Remove unnecessary awaits from clear and abort_processing methods --- openai_compatible_inference_bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openai_compatible_inference_bot.py b/openai_compatible_inference_bot.py index eae60fe..8f9cfc9 100644 --- a/openai_compatible_inference_bot.py +++ b/openai_compatible_inference_bot.py @@ -116,18 +116,18 @@ class OpenAICompatibleInferenceBot(BaseTelegramInferenceBot): async def start(self): logging.info(f"{self.__class__.__name__} started.") - async def clear(self, user_id): + def clear(self, user_id): super().clear_conversation_history(user_id) async def abort_processing(self, user_id): if user_id in self.processing_status: self.processing_status[user_id]["processing"] = False - await self.clear(user_id) + self.clear(user_id) return "Processing aborted and conversation cleared." else: - await self.clear(user_id) + self.clear(user_id) return "No active processing found to abort. Conversation cleared." @abstractmethod async def switch_model(self): - pass + pass \ No newline at end of file