revert pagination change and version bump

This commit is contained in:
Dev-Khant
2024-11-22 19:48:27 +05:30
parent 1508a5a418
commit 7284317cef
2 changed files with 2 additions and 6 deletions

View File

@@ -176,11 +176,7 @@ class MemoryClient:
self, self,
{"api_version": version, "keys": list(kwargs.keys())}, {"api_version": version, "keys": list(kwargs.keys())},
) )
data = response.json() return response.json()
if "output_format" in kwargs and kwargs["output_format"] == "v1.0":
return data["results"]
else:
return data
@api_error_handler @api_error_handler
def search(self, query: str, version: str = "v1", **kwargs) -> List[Dict[str, Any]]: def search(self, query: str, version: str = "v1", **kwargs) -> List[Dict[str, Any]]:

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "mem0ai" name = "mem0ai"
version = "0.1.31" version = "0.1.32"
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 = [