From 9113b9100e18f723b3862850087c34bc37c34c52 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 16 Apr 2025 05:34:30 +0000 Subject: [PATCH] fix(mem0_storage): ensure memory_config is set correctly when config is provided Co-Authored-By: Joe Moura --- src/crewai/memory/storage/mem0_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/memory/storage/mem0_storage.py b/src/crewai/memory/storage/mem0_storage.py index 835788727..f044d291b 100644 --- a/src/crewai/memory/storage/mem0_storage.py +++ b/src/crewai/memory/storage/mem0_storage.py @@ -24,7 +24,7 @@ class Mem0Storage(Storage): self.crew = crew self.config = config or {} # TODO: Memory config will be removed in the future the config will be passed as a parameter - self.memory_config = self.config or getattr(crew, "memory_config", {}) or {} + self.memory_config = self.config if config is not None else getattr(crew, "memory_config", {}) or {} # User ID is required for user memory type "user" since it's used as a unique identifier for the user. user_id = self._get_user_id()