powermem
powermem copied to clipboard
[Bug]: The exception handling operations of memory and usermemory are inconsistent
Describe the bug
When using [{'role': 'user', 'content': ''}] as original messages, memory throws ValueError: Cannot create memory with empty content., but usermemory does not.
Environment
N/A
Fast reproduce steps
Use [{'role': 'user', 'content': ''}] as Original messages,Carry out memory.add() and usermemory.add()
Expected behavior
No response
Actual behavior
No response
Additional context
No response
Maintain consistent exception handling logic on both sides
The verification is passed, and the returned results of both parties are consistent