AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Merge branch 'master' into shellcommands
Bernhard Muelleraba7956f10e6
diff --cc .env.templateindex aa221dfa76,01735615ca..0dfa98bc8b--- a/.env.template+++ b/.env.template@@@ -7,9 -7,9 +7,10 @@@ FAST_LLM_MODEL=gpt-3.5-turbGOOGLE_API_KEY=CUSTOM_SEARCH_ENGINE_ID=USE_AZURE=False+EXECUTE_LOCAL_COMMANDS=False- OPENAI_API_BASE=your-base-url-for-azure- OPENAI_API_VERSION=api-version-for-azure- OPENAI_DEPLOYMENT_ID=deployment-id-for-azure+ OPENAI_AZURE_API_BASE=your-base-url-for-azure+ OPENAI_AZURE_API_VERSION=api-version-for-azure+ OPENAI_AZURE_DEPLOYMENT_ID=deployment-id-for-azureIMAGE_PROVIDER=dalle- HUGGINGFACE_API_TOKEN=+ HUGGINGFACE_API_TOKEN=+ USE_MAC_OS_TTS=Falsediff --cc scripts/config.pyindex feb380b327,27cc946cf0..8bd1ea747c--- a/scripts/config.py+++ b/scripts/config.py@@@ -45,12 -45,10 +45,12 @@@ class Config(metaclass=Singleton)self.openai_api_key = os.getenv("OPENAI_API_KEY")self.use_azure = Falseself.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_API_BASE")- self.openai_api_version = os.getenv("OPENAI_API_VERSION")- self.openai_deployment_id = os.getenv("OPENAI_DEPLOYMENT_ID")+ self.openai_api_base = os.getenv("OPENAI_AZURE_API_BASE")+ self.openai_api_version = os.getenv("OPENAI_AZURE_API_VERSION")+ self.openai_deployment_id = os.getenv("OPENAI_AZURE_DEPLOYMENT_ID")openai.api_type = "azure"openai.api_base = self.openai_api_baseopenai.api_version = self.openai_api_version