From 75f7a960255538210ac738466000105035d963b2 Mon Sep 17 00:00:00 2001 From: John Wang Date: Tue, 30 May 2023 12:25:42 +0800 Subject: [PATCH] feat: ignore validate failed error log (#256) --- api/core/llm/provider/azure_provider.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/core/llm/provider/azure_provider.py b/api/core/llm/provider/azure_provider.py index 649c64cf73..d87ab761d3 100644 --- a/api/core/llm/provider/azure_provider.py +++ b/api/core/llm/provider/azure_provider.py @@ -110,6 +110,8 @@ class AzureProvider(BaseProvider): if missing_model_ids: raise ValidateFailedError("Please add deployments for '{}'.".format(", ".join(missing_model_ids))) + except ValidateFailedError as e: + raise e except AzureAuthenticationError: raise ValidateFailedError('Validation failed, please check your API Key.') except (requests.ConnectionError, requests.RequestException):