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,
{"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]]: