Skip to content

Commit 2b7dae8

Browse files
committed
fix: logger info
1 parent 5dece52 commit 2b7dae8

File tree

2 files changed

+85
-89
lines changed

2 files changed

+85
-89
lines changed

src/memos/mem_os/core.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -646,14 +646,8 @@ def add(
646646
)
647647
else:
648648
messages_list = [
649-
[
650-
{"role": "user", "content": memory_content},
651-
{
652-
"role": "assistant",
653-
"content": "",
654-
}, # add by str to keep the format,assistant role is empty
655-
]
656-
]
649+
[{"role": "user", "content": memory_content}]
650+
] # for only user-str input and convert message
657651
memories = self.mem_reader.get_memory(
658652
messages_list,
659653
type="chat",

0 commit comments

Comments
 (0)