Skip to content

Commit

Permalink
Stop passing list of dict, expects list of Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
w4ffl35 committed Feb 23, 2025
1 parent 826b21e commit 087afff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/airunner/handlers/llm/agent/mistral_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,7 @@ def clear_history(self, data: Optional[Dict] = None):
self._chat_memory.chat_store_key = self.conversation.key
messages = self.chat_store.get_messages(self.conversation.key)
if messages:
self._chat_memory.set([
message.model_dump() for message in messages
])
self._chat_memory.set(messages)
if self._chat_engine:
self._chat_engine.memory = self._chat_memory
self.reload_rag_engine()
Expand Down

0 comments on commit 087afff

Please sign in to comment.