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.
Fix for python < 3.10
Peter Edwardsbc4bca65d58c
diff --git a/.gitignore b/.gitignoreindex cfa3b08b5d..601751fbe9 100644--- a/.gitignore+++ b/.gitignore@@ -7,9 +7,11 @@ package-lock.jsonauto_gpt_workspace/**.mpeg.env+azure.yaml*venv/*outputs/*ai_settings.yaml+last_run_ai_settings.yaml.vscode.idea/*auto-gpt.jsondiff --git a/scripts/config.py b/scripts/config.pyindex 19a9eb887a..77b0667680 100644--- a/scripts/config.py+++ b/scripts/config.py@@ -92,15 +92,14 @@ class Config(metaclass=Singleton):Returns:The matching deployment id if found, otherwise an empty string."""- match model:- case self.fast_llm_model:- return self.azure_model_to_deployment_id_map["fast_llm_model_deployment_id"]- case self.smart_llm_model:- return self.azure_model_to_deployment_id_map["smart_llm_model_deployment_id"]- case "text-embedding-ada-002":- return self.azure_model_to_deployment_id_map["embedding_model_deployment_id"]- case default:- return ""+ if model == self.fast_llm_model:+ return self.azure_model_to_deployment_id_map["fast_llm_model_deployment_id"]+ elif model == self.smart_llm_model:+ return self.azure_model_to_deployment_id_map["smart_llm_model_deployment_id"]+ elif model == "text-embedding-ada-002":+ return self.azure_model_to_deployment_id_map["embedding_model_deployment_id"]+ else:+ return ""AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), '..', 'azure.yaml')