From 0ac027bf1c87d1809994236f63542ca7a505ae0a Mon Sep 17 00:00:00 2001 From: AllfatherHatt Date: Sat, 22 Feb 2025 01:53:33 +0100 Subject: [PATCH] Adding context, because why not --- reginaldCog/reginald.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reginaldCog/reginald.py b/reginaldCog/reginald.py index 290aed8..924ca64 100644 --- a/reginaldCog/reginald.py +++ b/reginaldCog/reginald.py @@ -102,7 +102,7 @@ class ReginaldCog(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}"}) - response_text = await self.generate_response(api_key, formatted_messages) + response_text = await self.generate_response(api_key, formatted_messages, ctx) # ✅ Extract potential long-term facts from Reginald's response potential_fact = self.extract_fact_from_response(response_text)