Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Fix for boolean eval from .env

Peter Edwards34b6f47f7128
diff --git a/scripts/config.py b/scripts/config.py
index d97ded9cac..a2ddd43096 100644
--- a/scripts/config.py
+++ b/scripts/config.py
@@ -35,7 +35,7 @@ class Config(metaclass=Singleton):
self.openai_api_key = os.getenv("OPENAI_API_KEY")
self.use_azure = False
- self.use_azure = os.getenv("USE_AZURE")
+ self.use_azure = os.getenv("USE_AZURE") == 'True'
if self.use_azure:
self.openai_api_base = os.getenv("OPENAI_API_BASE")
self.openai_api_version = os.getenv("OPENAI_API_VERSION")