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.
Added config option for OPENAI_API_TYPE=azure_ad
Kory Beckerdb9f8a2749e5
diff --git a/scripts/config.py b/scripts/config.pyindex 255587d76f..4f8961264d 100644--- a/scripts/config.py+++ b/scripts/config.py@@ -51,7 +51,8 @@ class Config(metaclass=Singleton):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_type = os.getenv("OPENAI_API_TYPE", "azure")+openai.api_base = self.openai_api_baseopenai.api_version = self.openai_api_version