From 0c8ebc2b06a3d763b128d154a844ce4759d89f26 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 16 Feb 2025 16:52:13 +0800 Subject: [PATCH] chore: clean up --- astrbot/core/platform/sources/gewechat/gewechat_event.py | 2 +- .../platform/sources/qqofficial/qqofficial_message_event.py | 2 +- astrbot/core/platform/sources/webchat/webchat_event.py | 2 +- changelogs/v3.4.28.md | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/astrbot/core/platform/sources/gewechat/gewechat_event.py b/astrbot/core/platform/sources/gewechat/gewechat_event.py index e329780a4..fa0f73457 100644 --- a/astrbot/core/platform/sources/gewechat/gewechat_event.py +++ b/astrbot/core/platform/sources/gewechat/gewechat_event.py @@ -134,6 +134,6 @@ class GewechatPlatformEvent(AstrMessageEvent): elif isinstance(comp, At): pass else: - logger.error(f"gewechat 暂不支持发送消息类型: {comp.type}") + logger.debug(f"gewechat 忽略: {comp.type}") await super().send(message) \ No newline at end of file diff --git a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py index fec3ed062..2d8cd71f6 100644 --- a/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +++ b/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py @@ -98,5 +98,5 @@ class QQOfficialMessageEvent(AstrMessageEvent): image_base64 = file_to_base64(i.file).replace("base64://", "") image_file_path = i.file else: - logger.error(f"qq_official 暂不支持发送消息类型 {i.type}") + logger.debug(f"qq_official 忽略 {i.type}") return plain_text, image_base64, image_file_path \ No newline at end of file diff --git a/astrbot/core/platform/sources/webchat/webchat_event.py b/astrbot/core/platform/sources/webchat/webchat_event.py index 8345b5c51..fe30151b2 100644 --- a/astrbot/core/platform/sources/webchat/webchat_event.py +++ b/astrbot/core/platform/sources/webchat/webchat_event.py @@ -39,6 +39,6 @@ class WebChatMessageEvent(AstrMessageEvent): f.write(f2.read()) web_chat_back_queue.put_nowait((f"[IMAGE]{filename}", cid)) else: - logger.error(f"webchat 暂不支持发送消息类型: {comp.type}") + logger.debug(f"webchat 忽略: {comp.type}") web_chat_back_queue.put_nowait(None) await super().send(message) \ No newline at end of file diff --git a/changelogs/v3.4.28.md b/changelogs/v3.4.28.md index 8956ffbcb..e92a6b08d 100644 --- a/changelogs/v3.4.28.md +++ b/changelogs/v3.4.28.md @@ -4,6 +4,7 @@ 2. ✨ 新增: 支持传递 OneBot 的 notice, request 事件类型,如戳一戳,进退群请求等 3. ✨ 新增: 插件支持自定义过滤算子 by @AraragiEro 4. ✨ 新增: 添加命令和命令组的别名支持 by @Cvandia +4. ✨ 新增: 提供了一个方法以删除分段回复后的某些字符,如末尾的标点符号。 by @Soulter and @Nothingness-Void 5. ⚡ 优化: 优化了分段回复和回复时at,引用都打开时的一些体验性问题 7. 🐛 修复: 分段回复导致了不完全的非 LLM 输出 #503 8. 🐛 修复: 添加 no_proxy 环境变量以支持本地请求, 修复在代理状态下时的 502 错误当通过 LMStudio, Ollama 本地部署 LLM 时 #504 #514