Ver Fonte

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

aaishikdutta há 2 anos atrás
pai
commit
e194f90619
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      embedchain/config/InitConfig.py

+ 1 - 1
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