The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Update validate_api_key (#2089)
Dev Khant4d08c16bd894
diff --git a/mem0/client/main.py b/mem0/client/main.pyindex 2775dc64d..ead284937 100644--- a/mem0/client/main.py+++ b/mem0/client/main.py@@ -103,7 +103,8 @@ class MemoryClient:def _validate_api_key(self):"""Validate the API key by making a test request."""try:- response = self.client.get("/v1/ping/")+ params = self._prepare_params()+ response = self.client.get("/v1/ping/", params=params)response.raise_for_status()except httpx.HTTPStatusError:raise ValueError("Invalid API Key. Please get a valid API Key from https://app.mem0.ai")diff --git a/pyproject.toml b/pyproject.tomlindex 283bd0ae2..3358cb149 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "mem0ai"-version = "0.1.34"+version = "0.1.35"description = "Long-term memory for AI Agents"authors = ["Mem0 <[email protected]>"]exclude = [