Skip to content

Commit 55354a1

Browse files
Moonlight-CLliangchg
andauthored
Get default collection name from environment when using mem0_memory tool and initiating it use default configuration (#251)
Co-authored-by: liangchg <[email protected]>
1 parent 3d1a7da commit 55354a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strands_tools/mem0_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Mem0ServiceClient:
166166
"provider": "opensearch",
167167
"config": {
168168
"port": 443,
169-
"collection_name": "mem0_memories",
169+
"collection_name": os.environ.get("OPENSEARCH_COLLECTION", "mem0"),
170170
"host": os.environ.get("OPENSEARCH_HOST"),
171171
"embedding_model_dims": 1024,
172172
"connection_class": RequestsHttpConnection,

0 commit comments

Comments
 (0)