mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Merge branch 'fix-memory-opt' into 'mgx_ops'
check empty content See merge request pub/MetaGPT!393
This commit is contained in:
commit
be78b101af
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue