mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-26 23:44:19 +00:00
更新了日记级别
将错误信息调整为warning
This commit is contained in:
+2
-2
@@ -62,7 +62,7 @@ class ReplyFilter:
|
|||||||
|
|
||||||
if "error_code" in response_dict:
|
if "error_code" in response_dict:
|
||||||
error_msg = response_dict.get("error_msg")
|
error_msg = response_dict.get("error_msg")
|
||||||
logging.info(f"百度云判定出错,错误信息:{error_msg}")
|
logging.warning(f"百度云判定出错,错误信息:{error_msg}")
|
||||||
conclusion = f"百度云判定出错,错误信息:{error_msg}\n以下是原消息:{message}"
|
conclusion = f"百度云判定出错,错误信息:{error_msg}\n以下是原消息:{message}"
|
||||||
else:
|
else:
|
||||||
conclusion = response_dict["conclusion"]
|
conclusion = response_dict["conclusion"]
|
||||||
@@ -70,7 +70,7 @@ class ReplyFilter:
|
|||||||
logging.info(f"百度云判定结果:{conclusion}")
|
logging.info(f"百度云判定结果:{conclusion}")
|
||||||
return message
|
return message
|
||||||
else:
|
else:
|
||||||
logging.info(f"百度云判定结果:{conclusion}")
|
logging.warning(f"百度云判定结果:{conclusion}")
|
||||||
conclusion = inappropriate_message_tips
|
conclusion = inappropriate_message_tips
|
||||||
# 返回百度云审核结果
|
# 返回百度云审核结果
|
||||||
return conclusion
|
return conclusion
|
||||||
|
|||||||
Reference in New Issue
Block a user