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 azure-deployment-additions
Rokniel63d3238c6c0d
diff --cc .env.templateindex cdf8e28c36,01735615ca..d30976b1f6--- a/.env.template+++ b/.env.template@@@ -7,10 -7,9 +7,11 @@@ FAST_LLM_MODEL=gpt-3.5-turbGOOGLE_API_KEY=CUSTOM_SEARCH_ENGINE_ID=USE_AZURE=False- OPENAI_API_BASE=your-base-url-for-azure- OPENAI_API_VERSION=api-version-for-azure- OPENAI_DEPLOYMENT_ID=deployment-id-for-azure- AZURE_CHAT_DEPLOYMENT_ID=deployment-id-for-azure-chat-ai- AZURE_EMBEDDINGS_DEPLOYMENT_ID=deployment-id-for-azure-embeddigs-ai+ 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=dalle- HUGGINGFACE_API_TOKEN=+ HUGGINGFACE_API_TOKEN=+ USE_MAC_OS_TTS=Falsediff --cc README.mdindex d93c598ff6,749c879151..812228380f--- a/README.md+++ b/README.md@@@ -92,8 -92,8 +92,8 @@@ pip install -r requirements.tx4. Rename `.env.template` to `.env` and fill in your `OPENAI_API_KEY`. If you plan to use Speech Mode, fill in your `ELEVEN_LABS_API_KEY` as well.- Obtain your OpenAI API key from: https://platform.openai.com/account/api-keys.- - Obtain your ElevenLabs API key from: https://beta.elevenlabs.io. You can view your xi-api-key using the "Profile" tab on the website.- - If you want to use GPT on an Azure instance, set `USE_AZURE` to `True` and provide the `OPENAI_API_BASE`, `OPENAI_API_VERSION` and `OPENAI_DEPLOYMENT_ID` values as explained here: https://pypi.org/project/openai/ in the `Microsoft Azure Endpoints` section. Additionally you need separate deployments for both embeddings and chat. Add their ID values to `AZURE_CHAT_DEPLOYMENT_ID` and `AZURE_EMBEDDINGS_DEPLOYMENT_ID` respectively+ - Obtain your ElevenLabs API key from: https://elevenlabs.io. You can view your xi-api-key using the "Profile" tab on the website.- - If you want to use GPT on an Azure instance, set `USE_AZURE` to `True` and provide the `OPENAI_AZURE_API_BASE`, `OPENAI_AZURE_API_VERSION` and `OPENAI_AZURE_DEPLOYMENT_ID` values as explained here: https://pypi.org/project/openai/ in the `Microsoft Azure Endpoints` section++ - If you want to use GPT on an Azure instance, set `USE_AZURE` to `True` and provide the `OPENAI_AZURE_API_BASE`, `OPENAI_AZURE_API_VERSION` and `OPENAI_AZURE_DEPLOYMENT_ID` values as explained here: https://pypi.org/project/openai/ in the `Microsoft Azure Endpoints` section. Additionally you need separate deployments for both embeddings and chat. Add their ID values to `OPENAI_AZURE_CHAT_DEPLOYMENT_ID` and `OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID` respectively## 🔧 Usagediff --cc scripts/config.pyindex 7f446cd16c,27cc946cf0..7795ce1006--- a/scripts/config.py+++ b/scripts/config.py@@@ -46,11 -46,9 +46,11 @@@ class Config(metaclass=Singleton)self.use_azure = Falseself.use_azure = os.getenv("USE_AZURE") == '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.azure_chat_deployment_id = os.getenv("AZURE_CHAT_DEPLOYMENT_ID")- self.azure_embeddigs_deployment_id = os.getenv("AZURE_EMBEDDINGS_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")++ self.azure_chat_deployment_id = os.getenv("OPENAI_AZURE_CHAT_DEPLOYMENT_ID")++ self.azure_embeddigs_deployment_id = os.getenv("OPENAI_AZURE_EMBEDDINGS_DEPLOYMENT_ID")openai.api_type = "azure"openai.api_base = self.openai_api_baseopenai.api_version = self.openai_api_version