Skip to content

Commit

Permalink
[Fix] Rename the return parameter from 'azure_model_map' to 'azure_mo…
Browse files Browse the repository at this point in the history
…del_to_deployment_id_map'
  • Loading branch information
jayden5744 committed Jul 3, 2023
1 parent 418ba5a commit cd1462b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autogpt/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def build_config_from_env(cls):
config_dict["openai_api_base"] = azure_config["openai_api_base"]
config_dict["openai_api_version"] = azure_config["openai_api_version"]
config_dict["azure_model_to_deployment_id_map"] = azure_config[

Check warning on line 255 in autogpt/config/config.py

View check run for this annotation

Codecov / codecov/patch

autogpt/config/config.py#L255

Added line #L255 was not covered by tests
"azure_model_map"
"azure_model_to_deployment_id_map"
]

openai.api_type = azure_config["openai_api_type"]
Expand Down Expand Up @@ -293,7 +293,9 @@ def load_azure_config(cls, config_file: str = AZURE_CONFIG_FILE) -> Dict[str, st
"openai_api_base": config_params.get("azure_api_base") or "",
"openai_api_version": config_params.get("azure_api_version")
or "2023-03-15-preview",
"azure_model_map": config_params.get("azure_model_map", {}),
"azure_model_to_deployment_id_map": config_params.get(
"azure_model_map", {}
),
}


Expand Down

0 comments on commit cd1462b

Please sign in to comment.