注释测试代码

This commit is contained in:
xunbu
2025-10-14 16:19:17 +08:00
parent 0d455752c3
commit 0e4f3dba61

View File

@@ -273,7 +273,7 @@ class Agent:
if pre_send_handler: if pre_send_handler:
system_prompt, prompt = pre_send_handler(system_prompt, prompt) system_prompt, prompt = pre_send_handler(system_prompt, prompt)
# print(f"system_prompt:\n{system_prompt}") # print(f"system_prompt:\n{system_prompt}")
print(f"【测试】prompt:\n{prompt}") # print(f"【测试】prompt:\n{prompt}")
headers, data = self._prepare_request_data(prompt, system_prompt) headers, data = self._prepare_request_data(prompt, system_prompt)
should_retry = False should_retry = False
is_hard_error = False # 新增标志,用于区分是否为硬错误 is_hard_error = False # 新增标志,用于区分是否为硬错误