From 472d8104c45ccf723630a431d7aa9277b35a8982 Mon Sep 17 00:00:00 2001 From: Dustin Date: Wed, 7 Aug 2024 15:57:16 -0400 Subject: [PATCH] bug fix on .clear function --- ollamarama.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ollamarama.py b/ollamarama.py index 728d1d7..6d106ff 100644 --- a/ollamarama.py +++ b/ollamarama.py @@ -217,6 +217,7 @@ class ollamarama: #set new global personality if message.startswith(".gpersona "): + self.messages.clear() m = message.split(" ", 1)[1] if m != None: if m == 'reset': @@ -233,7 +234,8 @@ class ollamarama: if message == ".clear": self.messages.clear() self.model = self.default_model - self.temperature, self.top_p, self.repeat_penalty = self.defaults + self.personality = self.default_personality + self.temperature, self.top_p, self.repeat_penalty = self.defaults.values() await self.send_message(room_id, "Bot has been reset for everyone")