From a253ab1f6aa9b177a154441069cf7d97a1a5d4d5 Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Fri, 21 Feb 2025 02:07:26 +0100 Subject: [PATCH] Trying to do this --- reginaldCog/reginald.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index e45d366..fcaac3c 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -108,7 +108,7 @@ class ReginaldCog(commands.Cog): if len(memory) > self.short_term_memory_limit: # 🔹 Generate a summary of the short-term memory - summary = await self.summarize_memory(memory) + summary = await self.summarize_memory(ctx, memory) # 🔹 Ensure mid-term memory exists for the channel mid_memory.setdefault(channel_id, []) @@ -137,7 +137,7 @@ class ReginaldCog(commands.Cog): - async def summarize_memory(self, messages): + async def summarize_memory(self, ctx, messages): """✅ Generates a summary of past conversations for mid-term storage.""" summary_prompt = ( "Analyze and summarize the following conversation in a way that retains key details, nuances, and unique insights. "