From 9609edbd34920a63f4b02da79de2acd3206acb83 Mon Sep 17 00:00:00 2001 From: lmst2 Date: Thu, 3 Apr 2025 14:22:13 +0100 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=9C=80=E5=A4=A7=E4=BB=8E=E4=BA=8B?= =?UTF-8?q?=E6=AC=A1=E6=95=B0log=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=85=B7=E4=BD=93=E9=94=99=E8=AF=AF=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/models/utils_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/models/utils_model.py b/src/plugins/models/utils_model.py index fb3d9b51c..09e251750 100644 --- a/src/plugins/models/utils_model.py +++ b/src/plugins/models/utils_model.py @@ -468,8 +468,8 @@ class LLM_request: logger.critical(f"请求头: {await self._build_headers(no_key=True)} 请求体: {payload}") raise RuntimeError(f"模型 {self.model_name} API请求失败: {str(e)}") from e - logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败") - raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数,API请求仍然失败") + logger.error(f"模型 {self.model_name} 达到最大重试次数,请求仍然失败,错误: {str(e)}") + raise RuntimeError(f"模型 {self.model_name} 达到最大重试次数,API请求仍然失败,错误: {str(e)}") async def _transform_parameters(self, params: dict) -> dict: """