powermem icon indicating copy to clipboard operation
powermem copied to clipboard

[Bug]: The exception handling operations of memory and usermemory are inconsistent

Open Ripcord55 opened this issue 11 months ago • 2 comments

Describe the bug

When using [{'role': 'user', 'content': ''}] as original messages, memory throws ValueError: Cannot create memory with empty content., but usermemory does not.

Image

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

Ripcord55 avatar Dec 16 '25 03:12 Ripcord55

Maintain consistent exception handling logic on both sides

Evenss avatar Dec 16 '25 03:12 Evenss

The verification is passed, and the returned results of both parties are consistent Image

Ripcord55 avatar Dec 16 '25 05:12 Ripcord55