diff --git a/autogpt/config/config.py b/autogpt/config/config.py index bc75b0319..34eccf7c2 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 821820ffa..056cd0135 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,