Update config.py

azure_model_to_deployment_id_map default type should be a dict, not list
This commit is contained in:
zvrr
2023-04-18 17:06:58 +08:00
committed by GitHub
parent 4c2a566acc
commit f7014e8773

View File

@@ -154,7 +154,7 @@ class Config(metaclass=Singleton):
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."""