增加测试代码

This commit is contained in:
xunbu
2025-10-14 15:22:57 +08:00
parent f64c896377
commit 9cfffdf97b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
# SPDX-FileCopyrightText: 2025 QinHan
# SPDX-License-Identifier: MPL-2.0
__version__="1.4.10"
__version__="1.4.11a1"

View File

@@ -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 # 新增标志,用于区分是否为硬错误