Skip to content

Commit

Permalink
fix sys bug (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Southpika authored Jan 16, 2024
1 parent 57ca34c commit 43c2a06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions erniebot-agent/src/erniebot_agent/memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def add_message(self, message: Message):

def get_messages(self) -> List[Message]:
"""Get all the messages in memory."""
if self.msg_manager.system_message is not None:
return [self.msg_manager.system_message] + self.msg_manager.retrieve_messages()
else:
return self.msg_manager.retrieve_messages()
return self.msg_manager.retrieve_messages()

def clear_chat_history(self):
"""Reset the memory."""
Expand Down

0 comments on commit 43c2a06

Please sign in to comment.