Skip to content

Commit 311b12f

Browse files
Update config hanlding
Signed-off-by: Andy Kwok <[email protected]>
1 parent 26e3327 commit 311b12f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/strands_tools/mem0_memory.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def _initialize_client(self, config: Optional[Dict] = None) -> Any:
212212
merged_config = self._initialize_faiss_client(config)
213213

214214

215-
216215
# Graph backend providers
217216
if os.environ.get("NEPTUNE_ANALYTICS_GRAPH_IDENTIFIER") and os.environ.get("NEPTUNE_DATABASE_ENDPOINT"):
218217
raise RuntimeError("""Conflicting backend configurations:
@@ -221,10 +220,10 @@ def _initialize_client(self, config: Optional[Dict] = None) -> Any:
221220

222221
if os.environ.get("NEPTUNE_ANALYTICS_GRAPH_IDENTIFIER"):
223222
logger.debug("Using Neptune Analytics graph backend (Mem0Memory with Neptune Analytics)")
224-
config = self._configure_neptune_analytics_backend(config)
223+
merged_config = self._configure_neptune_analytics_graph_backend(merged_config)
225224
elif os.environ.get("NEPTUNE_DATABASE_ENDPOINT"):
226225
logger.debug("Using Neptune Database graph backend (Mem0Memory with Neptune Database)")
227-
config = self._configure_neptune_backend(config)
226+
merged_config = self._configure_neptune_backend(merged_config)
228227

229228

230229
return Mem0Memory.from_config(config_dict=merged_config)

0 commit comments

Comments
 (0)