1. 修复论坛通信问题,基于日志块增加容错
2. 使用ERROR层级来避免json解析错误导致的连环问题
This commit is contained in:
@@ -101,7 +101,7 @@ class FirstSearchNode(BaseNode):
|
||||
result = json.loads(cleaned_output)
|
||||
logger.info("JSON解析成功")
|
||||
except JSONDecodeError as e:
|
||||
logger.exception(f"JSON解析失败: {str(e)}")
|
||||
logger.error(f"JSON解析失败: {str(e)}")
|
||||
# 使用更强大的提取方法
|
||||
result = extract_clean_response(cleaned_output)
|
||||
if "error" in result:
|
||||
@@ -236,7 +236,7 @@ class ReflectionNode(BaseNode):
|
||||
result = json.loads(cleaned_output)
|
||||
logger.info("JSON解析成功")
|
||||
except JSONDecodeError as e:
|
||||
logger.exception(f"JSON解析失败: {str(e)}")
|
||||
logger.error(f"JSON解析失败: {str(e)}")
|
||||
# 使用更强大的提取方法
|
||||
result = extract_clean_response(cleaned_output)
|
||||
if "error" in result:
|
||||
|
||||
Reference in New Issue
Block a user