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 remote-tracking branch 'upstream/master' into more_azure
Peter Edwards84c72d4f8cd4
diff --cc .env.templateindex c4a5ec7291,9b1c5c3fb4..479730e84a--- a/.env.template+++ b/.env.template@@@ -9,6 -10,12 +10,7 @@@ FAST_LLM_MODEL=gpt-3.5-turbGOOGLE_API_KEY=CUSTOM_SEARCH_ENGINE_ID=USE_AZURE=False+ EXECUTE_LOCAL_COMMANDS=False-OPENAI_AZURE_API_BASE=your-base-url-for-azure-OPENAI_AZURE_API_VERSION=api-version-for-azure-OPENAI_AZURE_DEPLOYMENT_ID=deployment-id-for-azure-OPENAI_AZURE_CHAT_DEPLOYMENT_ID=deployment-id-for-azure-chat-OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID=deployment-id-for-azure-embeddigsIMAGE_PROVIDER=dalleHUGGINGFACE_API_TOKEN=USE_MAC_OS_TTS=Falsediff --cc scripts/config.pyindex 77b0667680,79295ffb72..e4fa29ac8c--- a/scripts/config.py+++ b/scripts/config.py@@@ -44,10 -43,17 +44,13 @@@ 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 = 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_AZURE_API_BASE")- self.openai_api_version = os.getenv("OPENAI_AZURE_API_VERSION")- self.openai_deployment_id = os.getenv("OPENAI_AZURE_DEPLOYMENT_ID")- self.azure_chat_deployment_id = os.getenv("OPENAI_AZURE_CHAT_DEPLOYMENT_ID")- self.azure_embeddigs_deployment_id = os.getenv("OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID")+ self.load_azure_config()openai.api_type = "azure"openai.api_base = self.openai_api_baseopenai.api_version = self.openai_api_version