Merge pull request #463 from muellerberndt/shellcommands

Add capability to execute shell commands
This commit is contained in:
Richard Beales
2023-04-13 07:16:52 +01:00
committed by GitHub
5 changed files with 39 additions and 8 deletions

View File

@@ -45,6 +45,8 @@ class Config(metaclass=Singleton):
self.openai_api_key = os.getenv("OPENAI_API_KEY")
self.use_azure = False
self.use_azure = os.getenv("USE_AZURE") == 'True'
self.execute_local_commands = os.getenv('EXECUTE_LOCAL_COMMANDS', 'False') == 'True'
if self.use_azure:
self.openai_api_base = os.getenv("OPENAI_AZURE_API_BASE")
self.openai_api_version = os.getenv("OPENAI_AZURE_API_VERSION")