From aa23a7b1e62a8d880e89645e0c7643f5f86f4127 Mon Sep 17 00:00:00 2001 From: Dev-Khant Date: Mon, 28 Apr 2025 20:03:20 +0530 Subject: [PATCH] update changelog --- CHANGELOG.md | 2 ++ examples/foundational/37-mem0.py | 6 +++--- src/pipecat/services/mem0/memory.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c14be235..f0526028a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `MCPClient`; a way to connect to MCP servers and use the MCP servers' tools. +- Added `Mem0 OSS`, along with Mem0 cloud support now the OSS version is also available. + ### Changed - Function calls now receive a single parameter `FunctionCallParams` instead of diff --git a/examples/foundational/37-mem0.py b/examples/foundational/37-mem0.py index 1c0e8863a..b4a0dbed7 100644 --- a/examples/foundational/37-mem0.py +++ b/examples/foundational/37-mem0.py @@ -161,9 +161,9 @@ async def run_bot(webrtc_connection: SmallWebRTCConnection, _: argparse.Namespac # ===================================================================== memory = Mem0MemoryService( api_key=os.getenv("MEM0_API_KEY"), # Your Mem0 API key - user_id=USER_ID, # Unique identifier for the user - agent_id="agent1", # Optional identifier for the agent - run_id="session1", # Optional identifier for the run + user_id=USER_ID, # Unique identifier for the user + agent_id="agent1", # Optional identifier for the agent + run_id="session1", # Optional identifier for the run params=Mem0MemoryService.InputParams( search_limit=10, search_threshold=0.3, diff --git a/src/pipecat/services/mem0/memory.py b/src/pipecat/services/mem0/memory.py index c0a84b19e..d1d0d5abe 100644 --- a/src/pipecat/services/mem0/memory.py +++ b/src/pipecat/services/mem0/memory.py @@ -120,7 +120,7 @@ class Mem0MemoryService(FrameProcessor): "user_id": self.user_id, "agent_id": self.agent_id, "run_id": self.run_id, - "limit": self.search_limit + "limit": self.search_limit, } params = {k: v for k, v in params.items() if v is not None} results = self.memory_client.search(**params)