Skip to content

Commit

Permalink
Proper error message if api key not found (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Khant authored Oct 25, 2024
1 parent 10d3209 commit fb3eef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mem0/client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __init__(
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,
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.23"
version = "0.1.24"
description = "Long-term memory for AI Agents"
authors = ["Mem0 <founders@mem0.ai>"]
exclude = [
Expand Down

0 comments on commit fb3eef6

Please sign in to comment.