Proper error message if api key not found (#1985)

This commit is contained in:
Dev Khant
2024-10-26 00:04:40 +05:30
committed by GitHub
parent 10d3209e5a
commit fb3eef6cf5
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ class MemoryClient:
self.user_id = get_user_id()
if not self.api_key:
raise ValueError("API Key not provided. Please provide an API Key.")
raise ValueError("Mem0 API Key not provided. Please provide an API Key.")
self.client = httpx.Client(
base_url=self.host,