From 7b04c6f82a2b503264e2e53f9403f635e67f2c52 Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Sun, 16 Mar 2025 12:40:47 +0100 Subject: [PATCH] COmmenting on stuff --- reginaldCog/reginald.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index b3750b5..4fcfa9c 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -134,10 +134,20 @@ class ReginaldCog(PermissionsMixin, BlacklistMixin, MemoryMixin, commands.Cog): formatted_messages += [{"role": "user", "content": f"{entry['user']}: {entry['content']}"} for entry in memory] formatted_messages.append({"role": "user", "content": f"{user_name}: {prompt}"}) - # ✅ Generate AI Response + + ################################################## + # # + ## Generate AI Response, put into response_text ## + # # + ################################################## + response_text = await self.generate_response(api_key, formatted_messages) - # ✅ Store Memory + ################################################## + # # + ################################################## + + # ✅ Store Memory memory.append({"user": user_name, "content": prompt}) memory.append({"user": "Reginald", "content": response_text})