Add temperature configuration option to Config class

This commit is contained in:
Merwane Hamadi
2023-04-12 14:50:35 -07:00
parent a0f900f2da
commit 4faba1fdd8

View File

@@ -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: