From 1048ca612d518972403b48a3a44fc5e1e68fc87b Mon Sep 17 00:00:00 2001 From: LINSTCL Date: Sun, 5 Mar 2023 14:06:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=94=99=E8=AF=AF=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/openai/modelmgr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/openai/modelmgr.py b/pkg/openai/modelmgr.py index 2c8937c4..fe41cbef 100644 --- a/pkg/openai/modelmgr.py +++ b/pkg/openai/modelmgr.py @@ -52,6 +52,8 @@ class ModelRequest(): except aiE.APIConnectionError as e: self.error_info = "{}\n请检查网络连接或代理是否正常".format(e) raise ConnectionError(self.error_info) + except ValueError as e: + self.error_info = "{}\n该错误可能是由于http_proxy格式设置错误引起的" except Exception as e: self.error_info = "{}\n由于请求异常产生的未知错误,请查看日志".format(e) raise Exception(self.error_info)