From 8d2c97e68949c10d0879f2111f59852218914fdf Mon Sep 17 00:00:00 2001 From: Vivian Fang Date: Sun, 29 Oct 2023 22:39:48 -0700 Subject: [PATCH] Fix summarizer bug in async agent --- memgpt/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memgpt/agent.py b/memgpt/agent.py index dec8541638..19503e2624 100644 --- a/memgpt/agent.py +++ b/memgpt/agent.py @@ -970,7 +970,7 @@ async def summarize_messages_inplace(self, cutoff=None): message_sequence_to_summarize = self.messages[1:cutoff] # do NOT get rid of the system message printd(f"Attempting to summarize {len(message_sequence_to_summarize)} messages [1:{cutoff}] of {len(self.messages)}") - summary = await summarize_messages(self.model, message_sequence_to_summarize) + summary = await a_summarize_messages(self.model, message_sequence_to_summarize) printd(f"Got summary: {summary}") # Metadata that's useful for the agent to see