This commit is contained in:
2025-06-02 15:23:22 -05:00
+4 -4
View File
@@ -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