Merge pull request #1028 from merwanehamadi/feature/add-ability-change-temperature

Feature/add ability change temperature
This commit is contained in:
Richard Beales
2023-04-13 07:28:15 +01:00
committed by GitHub
3 changed files with 3 additions and 1 deletions

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'
self.execute_local_commands = os.getenv('EXECUTE_LOCAL_COMMANDS', 'False') == 'True'