Skip to content

Commit c8ea029

Browse files
committed
add: chat time for add
1 parent a4ab13a commit c8ea029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/memos/mem_os/product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ def chat_with_references(
822822
self.add(
823823
user_id=user_id,
824824
messages=[
825-
{"role": "user", "content": query},
826-
{"role": "assistant", "content": full_response}
825+
{"role": "user", "content": query, "chat_time": str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))},
826+
{"role": "assistant", "content": full_response, "chat_time": str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))}
827827
],
828828
mem_cube_id=cube_id
829829
)

0 commit comments

Comments
 (0)