increase timeout and version bump (#2205)
This commit is contained in:
@@ -100,7 +100,7 @@ class MemoryClient:
|
|||||||
self.client = httpx.Client(
|
self.client = httpx.Client(
|
||||||
base_url=self.host,
|
base_url=self.host,
|
||||||
headers={"Authorization": f"Token {self.api_key}", "Mem0-User-ID": self.user_id},
|
headers={"Authorization": f"Token {self.api_key}", "Mem0-User-ID": self.user_id},
|
||||||
timeout=60,
|
timeout=300,
|
||||||
)
|
)
|
||||||
self._validate_api_key()
|
self._validate_api_key()
|
||||||
capture_client_event("client.init", self)
|
capture_client_event("client.init", self)
|
||||||
@@ -169,7 +169,7 @@ class MemoryClient:
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
version: The API version to use for the search endpoint.
|
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:
|
Returns:
|
||||||
A list of dictionaries containing memories.
|
A list of dictionaries containing memories.
|
||||||
@@ -203,7 +203,7 @@ class MemoryClient:
|
|||||||
Args:
|
Args:
|
||||||
query: The search query string.
|
query: The search query string.
|
||||||
version: The API version to use for the search endpoint.
|
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:
|
Returns:
|
||||||
A list of dictionaries containing search results.
|
A list of dictionaries containing search results.
|
||||||
@@ -612,7 +612,7 @@ class AsyncMemoryClient:
|
|||||||
self.async_client = httpx.AsyncClient(
|
self.async_client = httpx.AsyncClient(
|
||||||
base_url=self.sync_client.host,
|
base_url=self.sync_client.host,
|
||||||
headers=self.sync_client.client.headers,
|
headers=self.sync_client.client.headers,
|
||||||
timeout=60,
|
timeout=300,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def __aenter__(self):
|
async def __aenter__(self):
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "mem0ai"
|
name = "mem0ai"
|
||||||
version = "0.1.48"
|
version = "0.1.49"
|
||||||
description = "Long-term memory for AI Agents"
|
description = "Long-term memory for AI Agents"
|
||||||
authors = ["Mem0 <founders@mem0.ai>"]
|
authors = ["Mem0 <founders@mem0.ai>"]
|
||||||
exclude = [
|
exclude = [
|
||||||
|
|||||||
Reference in New Issue
Block a user