Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
azure_model_to_deployment_id_map default type should be a dict, not list
  • Loading branch information
zvrr committed Apr 18, 2023
1 parent 4c2a566 commit f7014e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def load_azure_config(self, config_file: str = AZURE_CONFIG_FILE) -> None:
self.openai_api_version = (
config_params.get("azure_api_version") or "2023-03-15-preview"
)
self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", [])
self.azure_model_to_deployment_id_map = config_params.get("azure_model_map", {})

def set_continuous_mode(self, value: bool) -> None:
"""Set the continuous mode value."""
Expand Down

0 comments on commit f7014e8

Please sign in to comment.