From 4faba1fdd8bb0b25deabdb177a6522c3c242f512 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Wed, 12 Apr 2023 14:50:35 -0700 Subject: [PATCH] Add temperature configuration option to Config class --- scripts/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/config.py b/scripts/config.py index 255587d76f..cec7688bc2 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -43,6 +43,7 @@ class Config(metaclass=Singleton): self.smart_token_limit = int(os.getenv("SMART_TOKEN_LIMIT", 8000)) self.openai_api_key = os.getenv("OPENAI_API_KEY") + self.temperature = int(os.getenv("TEMPERATURE", "1")) self.use_azure = False self.use_azure = os.getenv("USE_AZURE") == 'True' if self.use_azure: