Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

App throws error even if api key is passed (#237)

aaishikduttae194f90619ee
diff --git a/embedchain/config/InitConfig.py b/embedchain/config/InitConfig.py
index 5189e890a..268538b05 100644
--- a/embedchain/config/InitConfig.py
+++ b/embedchain/config/InitConfig.py
@@ -56,7 +56,7 @@ class InitConfig(BaseConfig):
"""
if (
os.getenv("OPENAI_API_KEY") is None
- or os.getenv("OPENAI_ORGANIZATION") is None
+ and os.getenv("OPENAI_ORGANIZATION") is None
):
raise ValueError(
"OPENAI_API_KEY or OPENAI_ORGANIZATION environment variables not provided" # noqa:E501