From e6d770383662bd507dac7d030e792d1cda1d951b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 19 Apr 2025 14:42:27 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8A=A8=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/models/utils_model_new.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/models/utils_model_new.py b/src/plugins/models/utils_model_new.py index 8535476cd..1faebc3e5 100644 --- a/src/plugins/models/utils_model_new.py +++ b/src/plugins/models/utils_model_new.py @@ -610,7 +610,7 @@ class LLMRequest: "stream_mode": stream_mode, "image_base64": image_base64, # 保留必要的exception处理所需的原始数据 "image_format": image_format, - "prompt": prompt + "prompt": prompt, } async def _execute_request( @@ -862,7 +862,9 @@ class LLMRequest: if keep_request: image_base64 = request_content["image_base64"] compressed_image_base64 = compress_base64_image_by_scale(image_base64) - new_payload = await self._build_payload(request_content["prompt"], compressed_image_base64, request_content["image_format"]) + new_payload = await self._build_payload( + request_content["prompt"], compressed_image_base64, request_content["image_format"] + ) return new_payload, 0 else: return None, 0 @@ -910,7 +912,7 @@ class LLMRequest: ) except Exception as parse_err: logger.warning(f"模型 {self.model_name} 无法解析响应错误内容: {str(parse_err)}") - + await asyncio.sleep(wait_time) return None, 0 else: