Skip to content

Commit

Permalink
Change ping endpoint for validating api key (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
deshraj authored Oct 12, 2024
1 parent ae7b1a6 commit b59fbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mem0/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
def _validate_api_key(self):
"""Validate the API key by making a test request."""
try:
response = self.client.get("/v1/memories/", params={"user_id": "test"})
response = self.client.get("/v1/ping/")
response.raise_for_status()
except httpx.HTTPStatusError:
raise ValueError("Invalid API Key. Please get a valid API Key from https://app.mem0.ai")
Expand Down

0 comments on commit b59fbb0

Please sign in to comment.