We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4daacf8 commit 93c1ed1Copy full SHA for 93c1ed1
autogpt/chat.py
@@ -64,7 +64,8 @@ def chat_with_ai(
64
if len(full_message_history) == 0:
65
relevant_memory = ""
66
else:
67
- recent_history = full_message_history[-5:]
+ recent_history = [history.to_dict() for history in full_message_history[-5:]]
68
+ logger.debug(f"Recent history: {recent_history}")
69
relevant_memories = permanent_memory.get_relevant(str(recent_history), 5)
70
relevant_memory = str(relevant_memories)
71
0 commit comments