From 4fc07cff363653e9554ad22420774f9189e60d66 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 29 May 2025 15:46:40 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=93=A6=20release:=20v3.5.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelogs/v3.5.12.md | 18 ++++++++++++++++++ requirements.txt | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 changelogs/v3.5.12.md diff --git a/changelogs/v3.5.12.md b/changelogs/v3.5.12.md new file mode 100644 index 000000000..bdcf2941a --- /dev/null +++ b/changelogs/v3.5.12.md @@ -0,0 +1,18 @@ +# What's Changed + +1. 新增:支持 MCP 的 Streamable HTTP 传输方式。详见 [#1637](https://github.com/Soulter/AstrBot/issues/1637) +2. 新增:支持 MCP 的 SSE 传输方式的自定义请求头。详见 [#1659](https://github.com/Soulter/AstrBot/issues/1659) +3. 优化:将 /llm 和 /model 和 /provider 指令设置为管理员指令 +4. 修复:修复插件的 priority 部分失效的问题 +5. 修复:修复 QQ 下合并转发消息内无法发送文件等问题,尽可能修复了各种文件、语音、视频、图片无法发送的问题 +6. 优化:Telegram 支持长消息分段发送,优化消息编辑的逻辑 +7. 优化:WebUI 强制默认修改密码 +8. 优化:移除了 vpet +9. 新增:插件接口:支持动态路由注册 +10. 优化:CLI 模式下的插件下载 +11. 新增:WeChatPadPro 对接获取联系人接口 +12. 新增:T2I、语音、视频支持文件服务 +13. 优化:硅基流动下某些工具调用返回的 argument 格式适配 +14. 优化:在使用 /llm 指令关闭后重启 AstrBot 后,模型提供商未被加载 +15. 新增:新增基于 FAISS + SQLite 的向量存储接口 +16. 新增:Alkaid Page diff --git a/requirements.txt b/requirements.txt index 4bfd9e89d..8f75b0cf3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -34,4 +34,5 @@ google-genai click filelock watchfiles -websockets \ No newline at end of file +websockets +faiss-cpu \ No newline at end of file From 288945bf7e61e1a73a53fae6855fe326f0f6d16b Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 29 May 2025 15:48:21 +0800 Subject: [PATCH 2/4] chore: aiosqlite to requirements.txt --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8f75b0cf3..c5b640e20 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,4 +35,5 @@ click filelock watchfiles websockets -faiss-cpu \ No newline at end of file +faiss-cpu +aiosqlite \ No newline at end of file From b310521884e3c595278e56011c3ee40d198c06f5 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 29 May 2025 15:55:25 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=93=A6=20release:=20v3.5.12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/config/default.py | 68 +++++++++++++++++++++++++--------- pyproject.toml | 2 +- 2 files changed, 52 insertions(+), 18 deletions(-) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index f6f19ce04..708b0876d 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -5,7 +5,7 @@ import os from astrbot.core.utils.astrbot_path import get_astrbot_data_path -VERSION = "3.5.11" +VERSION = "3.5.12" DB_PATH = os.path.join(get_astrbot_data_path(), "data_v3.db") # 默认配置 @@ -178,7 +178,7 @@ CONFIG_METADATA_2 = { "api_base_url": "https://api.weixin.qq.com/cgi-bin/", "callback_server_host": "0.0.0.0", "port": 6194, - "active_send_mode": False + "active_send_mode": False, }, "wecom(企业微信)": { "id": "wecom", @@ -224,19 +224,19 @@ CONFIG_METADATA_2 = { }, "items": { "active_send_mode": { - "description": "是否换用主动发送接口", - "type": "bool", - "desc": "只有企业认证的公众号才能主动发送。主动发送接口的限制会少一些。" + "description": "是否换用主动发送接口", + "type": "bool", + "desc": "只有企业认证的公众号才能主动发送。主动发送接口的限制会少一些。", }, "wpp_active_message_poll": { - "description": "是否启用主动消息轮询", - "type": "bool", - "hint": "只有当你发现微信消息没有按时同步到 AstrBot 时,才需要启用这个功能,默认不启用。" + "description": "是否启用主动消息轮询", + "type": "bool", + "hint": "只有当你发现微信消息没有按时同步到 AstrBot 时,才需要启用这个功能,默认不启用。", }, "wpp_active_message_poll_interval": { - "description": "主动消息轮询间隔", - "type": "int", - "hint": "主动消息轮询间隔,单位为秒,默认 3 秒,最大不要超过 60 秒,否则可能被认为是旧消息。" + "description": "主动消息轮询间隔", + "type": "int", + "hint": "主动消息轮询间隔,单位为秒,默认 3 秒,最大不要超过 60 秒,否则可能被认为是旧消息。", }, "kf_name": { "description": "微信客服账号名", @@ -867,22 +867,22 @@ CONFIG_METADATA_2 = { "volcengine_cluster": { "type": "string", "description": "火山引擎集群", - "hint": "若使用语音复刻大模型,可选volcano_icl或volcano_icl_concurr,默认使用volcano_tts" + "hint": "若使用语音复刻大模型,可选volcano_icl或volcano_icl_concurr,默认使用volcano_tts", }, "volcengine_voice_type": { "type": "string", "description": "火山引擎音色", - "hint": "输入声音id(Voice_type)" + "hint": "输入声音id(Voice_type)", }, "volcengine_speed_ratio": { "type": "float", "description": "语速设置", - "hint": "语速设置,范围为 0.2 到 3.0,默认值为 1.0" + "hint": "语速设置,范围为 0.2 到 3.0,默认值为 1.0", }, "volcengine_volume_ratio": { "type": "float", "description": "音量设置", - "hint": "音量设置,范围为 0.0 到 2.0,默认值为 1.0" + "hint": "音量设置,范围为 0.0 到 2.0,默认值为 1.0", }, "azure_tts_voice": { "type": "string", @@ -1055,7 +1055,33 @@ CONFIG_METADATA_2 = { "type": "string", "description": "指定语言/方言", "hint": "增强对指定的小语种和方言的识别能力,设置后可以提升在指定小语种/方言场景下的语音表现", - "options": [ "Chinese","Chinese,Yue","English","Arabic","Russian","Spanish","French","Portuguese","German","Turkish","Dutch","Ukrainian","Vietnamese","Indonesian","Japanese","Italian","Korean","Thai","Polish","Romanian","Greek","Czech","Finnish","Hindi","auto",], + "options": [ + "Chinese", + "Chinese,Yue", + "English", + "Arabic", + "Russian", + "Spanish", + "French", + "Portuguese", + "German", + "Turkish", + "Dutch", + "Ukrainian", + "Vietnamese", + "Indonesian", + "Japanese", + "Italian", + "Korean", + "Thai", + "Polish", + "Romanian", + "Greek", + "Czech", + "Finnish", + "Hindi", + "auto", + ], }, "minimax-voice-speed": { "type": "float", @@ -1092,7 +1118,15 @@ CONFIG_METADATA_2 = { "type": "string", "description": "情绪", "hint": "控制合成语音的情绪", - "options": ["happy","sad","angry","fearful","disgusted","surprised","neutral",], + "options": [ + "happy", + "sad", + "angry", + "fearful", + "disgusted", + "surprised", + "neutral", + ], }, "minimax-voice-latex": { "type": "bool", diff --git a/pyproject.toml b/pyproject.toml index a09c59c9c..21129f654 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "AstrBot" -version = "3.5.11" +version = "3.5.12" description = "易上手的多平台 LLM 聊天机器人及开发框架" readme = "README.md" requires-python = ">=3.10" From 2fc0ec0f720ef96b6fba4b453538dbc91978189a Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Thu, 29 May 2025 17:28:33 +0800 Subject: [PATCH 4/4] fix: update route --- astrbot/dashboard/routes/static_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/static_file.py b/astrbot/dashboard/routes/static_file.py index 729fe8547..36a582bee 100644 --- a/astrbot/dashboard/routes/static_file.py +++ b/astrbot/dashboard/routes/static_file.py @@ -12,7 +12,7 @@ class StaticFileRoute(Route): "/logs", "/extension", "/dashboard/default", - "/project-atri", + "/alkaid", "/console", "/chat", "/settings",