Skip to content

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 Azure Config file location

Yun Zhengfc6070d57491
diff --git a/autogpt/config/config.py b/autogpt/config/config.py
index bc75b03192..34eccf7c26 100644
--- a/autogpt/config/config.py
+++ b/autogpt/config/config.py
@@ -131,7 +131,7 @@ class Config(metaclass=Singleton):
else:
return ""
- AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "..", "azure.yaml")
+ AZURE_CONFIG_FILE = os.path.join(os.path.dirname(__file__), "../..", "azure.yaml")
def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> None:
"""
diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py
index 821820ffab..056cd0135e 100644
--- a/autogpt/llm_utils.py
+++ b/autogpt/llm_utils.py
@@ -83,7 +83,7 @@ def create_chat_completion(
try:
if CFG.use_azure:
response = openai.ChatCompletion.create(
- deployment_id=CFG.get_azure_deployment_id_for_model(model),
+ engine=CFG.get_azure_deployment_id_for_model(model),
model=model,
messages=messages,
temperature=temperature,