增加测试代码
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
# SPDX-FileCopyrightText: 2025 QinHan
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
__version__="1.4.10"
|
||||
__version__="1.4.11a1"
|
||||
@@ -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 # 新增标志,用于区分是否为硬错误
|
||||
|
||||
Reference in New Issue
Block a user