mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
fix(mem0_storage): ensure memory_config is set correctly when config is provided
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user