From e194f90619eeca7c23e55e3be38ea566b00d2b2b Mon Sep 17 00:00:00 2001 From: aaishikdutta <107566376+aaishikdutta@users.noreply.github.com> Date: Tue, 11 Jul 2023 21:20:28 +0530 Subject: [PATCH] App throws error even if api key is passed (#237) --- embedchain/config/InitConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedchain/config/InitConfig.py b/embedchain/config/InitConfig.py index 5189e890..268538b0 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