This commit is contained in:
黄伟韬 2024-10-12 16:36:43 +08:00
parent b9cfc29e31
commit 155da2df40

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])