Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

increase timeout and version bump (#2205)

Dev Khantcd31c5897a29
diff --git a/mem0/client/main.py b/mem0/client/main.py
index 6130405d5..8e17e1868 100644
--- a/mem0/client/main.py
+++ b/mem0/client/main.py
@@ -100,7 +100,7 @@ class MemoryClient:
self.client = httpx.Client(
base_url=self.host,
headers={"Authorization": f"Token {self.api_key}", "Mem0-User-ID": self.user_id},
- timeout=60,
+ timeout=300,
)
self._validate_api_key()
capture_client_event("client.init", self)
@@ -169,7 +169,7 @@ class MemoryClient:
Args:
version: The API version to use for the search endpoint.
- **kwargs: Optional parameters for filtering (user_id, agent_id, app_id, limit).
+ **kwargs: Optional parameters for filtering (user_id, agent_id, app_id, top_k).
Returns:
A list of dictionaries containing memories.
@@ -203,7 +203,7 @@ class MemoryClient:
Args:
query: The search query string.
version: The API version to use for the search endpoint.
- **kwargs: Additional parameters such as user_id, agent_id, app_id, limit, filters.
+ **kwargs: Additional parameters such as user_id, agent_id, app_id, top_k, filters.
Returns:
A list of dictionaries containing search results.
@@ -612,7 +612,7 @@ class AsyncMemoryClient:
self.async_client = httpx.AsyncClient(
base_url=self.sync_client.host,
headers=self.sync_client.client.headers,
- timeout=60,
+ timeout=300,
)
async def __aenter__(self):
diff --git a/pyproject.toml b/pyproject.toml
index f485fa404..1b4f31633 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mem0ai"
-version = "0.1.48"
+version = "0.1.49"
description = "Long-term memory for AI Agents"
authors = ["Mem0 <[email protected]>"]
exclude = [