From 9cfffdf97b3a8fe7bab01185cbaaeab451c2d846 Mon Sep 17 00:00:00 2001 From: xunbu Date: Tue, 14 Oct 2025 15:22:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docutranslate/__init__.py | 2 +- docutranslate/agents/agent.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docutranslate/__init__.py b/docutranslate/__init__.py index 77e4104..e4ab1d0 100644 --- a/docutranslate/__init__.py +++ b/docutranslate/__init__.py @@ -1,3 +1,3 @@ # SPDX-FileCopyrightText: 2025 QinHan # SPDX-License-Identifier: MPL-2.0 -__version__="1.4.10" \ No newline at end of file +__version__="1.4.11a1" \ No newline at end of file diff --git a/docutranslate/agents/agent.py b/docutranslate/agents/agent.py index 1c1cfef..c329ed8 100644 --- a/docutranslate/agents/agent.py +++ b/docutranslate/agents/agent.py @@ -273,7 +273,7 @@ class Agent: if pre_send_handler: system_prompt, prompt = pre_send_handler(system_prompt, prompt) # print(f"system_prompt:\n{system_prompt}") - + # print(f"【测试】prompt:\n{prompt}") headers, data = self._prepare_request_data(prompt, system_prompt) should_retry = False is_hard_error = False # 新增标志,用于区分是否为硬错误