Skip to content

Commit

Permalink
Merge pull request #2355 from yunzheng1112/fix-azure-config
Browse files Browse the repository at this point in the history
* fix path of Azure config file
* default azure_api_type -> azure
  • Loading branch information
Pwuts committed Apr 19, 2023
2 parents 7eed489 + 45f490e commit 0d7ab41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autogpt/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_azure_deployment_id_for_model(self, model: str) -> str:
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:
"""
Expand Down
2 changes: 1 addition & 1 deletion azure.yaml.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
azure_api_type: azure_ad
azure_api_type: azure
azure_api_base: your-base-url-for-azure
azure_api_version: api-version-for-azure
azure_model_map:
Expand Down

0 comments on commit 0d7ab41

Please sign in to comment.