Fix for boolean eval from .env

pull/258/head
Peter Edwards 2023-04-06 09:15:45 +02:00
parent a868a39b88
commit 34b6f47f71
1 changed files with 1 additions and 1 deletions

View File

@ -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")