check empty content

This commit is contained in:
seehi 2024-10-11 17:34:22 +08:00
parent c95a925b19
commit 444dd1a47b

View file

@ -129,7 +129,7 @@ class RoleZeroLongTermMemory(Memory):
If adding long-term memory fails, it will only log the error without interrupting program execution.
"""
if not item:
if not item or not item.message.content:
return
self.rag_engine.add_objs([item])