mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 17:16:52 +08:00
Fix: memory (#12230)
### What problem does this PR solve? Judge has attr memory_ids ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -427,7 +427,7 @@ class Message(ComponentBase):
|
|||||||
logging.error(f"Error converting content to {self._param.output_format}: {e}")
|
logging.error(f"Error converting content to {self._param.output_format}: {e}")
|
||||||
|
|
||||||
async def _save_to_memory(self, content):
|
async def _save_to_memory(self, content):
|
||||||
if hasattr(self._param, "memory_ids") and not self._param.memory_ids:
|
if not hasattr(self._param, "memory_ids") or not self._param.memory_ids:
|
||||||
return True, "No memory selected."
|
return True, "No memory selected."
|
||||||
|
|
||||||
message_dict = {
|
message_dict = {
|
||||||
|
|||||||
Reference in New Issue
Block a user