Skip to content

Commit

Permalink
revert pagination change and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant committed Nov 22, 2024
1 parent 1508a5a commit 7284317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions mem0/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,7 @@ def get_all(self, version: str = "v1", **kwargs) -> List[Dict[str, Any]]:
self,
{"api_version": version, "keys": list(kwargs.keys())},
)
data = response.json()
if "output_format" in kwargs and kwargs["output_format"] == "v1.0":
return data["results"]
else:
return data
return response.json()

@api_error_handler
def search(self, query: str, version: str = "v1", **kwargs) -> List[Dict[str, Any]]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mem0ai"
version = "0.1.31"
version = "0.1.32"
description = "Long-term memory for AI Agents"
authors = ["Mem0 <[email protected]>"]
exclude = [
Expand Down

0 comments on commit 7284317

Please sign in to comment.