Merge pull request #2351 from zvrr/zvrr-patch-1

fix azure_model_to_deployment_id_map type (list -> dict)
This commit is contained in:
Reinier van der Leer
2023-04-19 17:23:40 +02:00
committed by GitHub

View File

@@ -168,7 +168,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."""