From d1a3e44c45be40e2d576d5c4f6d04f24c36051b7 Mon Sep 17 00:00:00 2001 From: passthem Date: Wed, 26 Nov 2025 13:09:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=A5=E5=BF=97=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E5=92=8C=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/common/apis/ali_content_safety.py | 2 +- konabot/plugins/simple_notify/ask_llm.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/konabot/common/apis/ali_content_safety.py b/konabot/common/apis/ali_content_safety.py index d8661b8..50b6676 100644 --- a/konabot/common/apis/ali_content_safety.py +++ b/konabot/common/apis/ali_content_safety.py @@ -65,7 +65,7 @@ class AlibabaGreen: )) if response.status_code == 200: result = response.body - logger.debug(f"检测违规内容 API 调用成功:{result}") + logger.info(f"检测违规内容 API 调用成功:{result}") risk_level: str = result.data.risk_level or "none" if risk_level == "high": return False diff --git a/konabot/plugins/simple_notify/ask_llm.py b/konabot/plugins/simple_notify/ask_llm.py index f7d85cc..b808da5 100644 --- a/konabot/plugins/simple_notify/ask_llm.py +++ b/konabot/plugins/simple_notify/ask_llm.py @@ -88,6 +88,7 @@ async def ask_ai(expression: str, now: datetime.datetime | None = None) -> tuple is_safe = await AlibabaGreen.detect(expression) if not is_safe: + logger.info(f"提醒功能:消息被阿里绿网拦截 message={expression}") return None, "" llm = get_llm("qwen3-max")