Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astrbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging

__version__ = "4.27.1"
__version__ = "4.27.2"
logger = logging.getLogger("astrbot")
90 changes: 45 additions & 45 deletions astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,37 +363,29 @@
"ws_reverse_port": 6199,
"ws_reverse_token": "",
},
"微信公众平台": {
"id": "weixin_official_account",
"type": "weixin_official_account",
"个人微信": {
"id": "weixin_personal",
"type": "weixin_oc",
"enable": True,
"appid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"api_base_url": "https://api.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"webhook_uuid": "",
"callback_server_host": "0.0.0.0",
"port": 6194,
"active_send_mode": False,
"weixin_oc_base_url": "https://ilinkai.weixin.qq.com",
"weixin_oc_bot_type": "3",
"weixin_oc_qr_poll_interval": 1,
"weixin_oc_long_poll_timeout_ms": 35_000,
"weixin_oc_api_timeout_ms": 120_000,
},
"企业微信(含微信客服)": {
"id": "wecom",
"type": "wecom",
"飞书(Lark)": {
"id": "lark",
"type": "lark",
"enable": True,
"corpid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"kf_name": "",
"api_base_url": "https://qyapi.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"app_id": "",
"app_secret": "",
"domain": "https://open.feishu.cn",
"lark_connection_mode": "socket", # webhook, socket
"webhook_uuid": "",
"callback_server_host": "0.0.0.0",
"port": 6195,
"lark_encrypt_key": "",
"lark_verification_token": "",
},
"企业微信智能机器人": {
"企业微信 (智能机器人)": {
"id": "wecom_ai_bot",
"type": "wecom_ai_bot",
"hint": "如果发现字段有异常,请重新创建",
Expand All @@ -415,27 +407,20 @@
"callback_server_host": "0.0.0.0",
"port": 6198,
},
"个人微信": {
"id": "weixin_personal",
"type": "weixin_oc",
"enable": True,
"weixin_oc_base_url": "https://ilinkai.weixin.qq.com",
"weixin_oc_bot_type": "3",
"weixin_oc_qr_poll_interval": 1,
"weixin_oc_long_poll_timeout_ms": 35_000,
"weixin_oc_api_timeout_ms": 120_000,
},
"飞书(Lark)": {
"id": "lark",
"type": "lark",
"企业微信应用 & 微信客服": {
"id": "wecom",
"type": "wecom",
"enable": True,
"app_id": "",
"app_secret": "",
"domain": "https://open.feishu.cn",
"lark_connection_mode": "socket", # webhook, socket
"corpid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"kf_name": "",
"api_base_url": "https://qyapi.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"webhook_uuid": "",
"lark_encrypt_key": "",
"lark_verification_token": "",
"callback_server_host": "0.0.0.0",
"port": 6195,
},
"钉钉(DingTalk)": {
"id": "dingtalk",
Expand All @@ -445,6 +430,21 @@
"client_secret": "",
"card_template_id": "",
},
"微信公众平台": {
"id": "weixin_official_account",
"type": "weixin_official_account",
"enable": True,
"appid": "",
"secret": "",
"token": "",
"encoding_aes_key": "",
"api_base_url": "https://api.weixin.qq.com/cgi-bin/",
"unified_webhook_mode": True,
"webhook_uuid": "",
"callback_server_host": "0.0.0.0",
"port": 6194,
"active_send_mode": False,
},
"Telegram": {
"id": "telegram",
"type": "telegram",
Expand Down
31 changes: 31 additions & 0 deletions changelogs/v4.27.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## [4.27.2] - 2026-08-05

### Fixed

- Accepted dashboard session tokens from case-insensitive Bearer authorization headers when downloading backups. (#9525)
- Simplified capability lists by removing redundant source badges and refined welcome card borders. (#9541)
- Used the current AstrBot favicon on the dashboard login page. (#9537)
- Fixed related display issues in the AstrBot Desktop WebUI.

### Maintenance

- Isolated administrator API key configuration in the test suite. (#9539)
- Updated the CodeQL, Docker login, and stale GitHub Actions. (#9532)
- Split bug report and feature request templates into English and Chinese versions, added archive upload support for reproductions, and removed an unsupported attachment type. (#9536, #9544)

## 中文

### 修复

- 下载备份时支持从不区分大小写的 Bearer 授权请求头读取 Dashboard 会话令牌。 (#9525)
- 移除能力列表中冗余的来源标签,并优化欢迎页卡片边框样式。 (#9541)
- Dashboard 登录页改用当前 AstrBot favicon。 (#9537)
- 修复 AstrBot Desktop 端 WebUI 的相关显示问题。

### 维护

- 在测试套件中隔离管理员 API Key 配置。 (#9539)
- 更新 CodeQL、Docker 登录和过期 Issue 处理相关的 GitHub Actions。 (#9532)
- 将错误报告和功能请求模板拆分为中英文版本,支持上传复现问题所需的压缩文件,并移除不受支持的附件类型。 (#9536, #9544)

[4.27.2]: https://github.com/AstrBotDevs/AstrBot/compare/v4.27.1...v4.27.2
19 changes: 19 additions & 0 deletions dashboard/src/components/platform/AddNewPlatform.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@
"
/>
</template>
<v-tooltip
v-if="
[
'qq_official',
'qq_official_webhook',
'aiocqhttp',
'weixin_oc',
].includes(platformTemplates[item.raw].type)
"
activator="parent"
:text="
tm(
`createDialog.platformTooltips.${platformTemplates[item.raw].type}`,
)
"
location="end"
max-width="360"
open-delay="50"
/>
</v-list-item>
</template>
</v-select>
Expand Down
6 changes: 6 additions & 0 deletions dashboard/src/i18n/locales/en-US/features/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
"step1Title": "Choose Platform Category",
"step1Hint": "Where do you want to connect the bot? e.g. QQ, WeCom, Feishu, Discord, Telegram.",
"platformTypeLabel": "Platform Category",
"platformTooltips": {
"qq_official": "QQ's official bot platform. Supports private chats, joining QQ group chats (you only need to be the group owner), Markdown rendering in QQ, and one-click QR setup.",
"qq_official_webhook": "QQ's official bot platform. Supports private chats, joining QQ group chats (you only need to be the group owner), Markdown rendering in QQ, and one-click QR setup. This Webhook method requires a public IP address, so the WebSocket method above is recommended.",
"aiocqhttp": "A well-known instant messaging protocol. Connect through third-party services such as NapCat to integrate instant messaging apps.",
"weixin_oc": "WeChat's official bot integration. Supports private chats only and one-click QR setup."
},
"configFileTitle": "Config File",
"optional": "Optional",
"configHint": "How do you want to configure the bot? The config file includes model, persona, knowledge base, plugins, and more.",
Expand Down
6 changes: 6 additions & 0 deletions dashboard/src/i18n/locales/ru-RU/features/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
"step1Title": "Выберите мессенджер",
"step1Hint": "Куда вы хотите подключить бота? (QQ, Telegram, Discord, WeChat и др.)",
"platformTypeLabel": "Платформа",
"platformTooltips": {
"qq_official": "Официальная платформа ботов QQ. Поддерживает личные сообщения, добавление в группы QQ (достаточно быть владельцем группы), Markdown в QQ и создание одним сканированием QR-кода.",
"qq_official_webhook": "Официальная платформа ботов QQ. Поддерживает личные сообщения, добавление в группы QQ (достаточно быть владельцем группы), Markdown в QQ и создание одним сканированием QR-кода. Для Webhook требуется публичный IP-адрес, поэтому рекомендуется использовать указанный выше метод WebSocket.",
"aiocqhttp": "Известный протокол для мессенджеров. Позволяет подключать мессенджеры через сторонние сервисы, такие как NapCat.",
"weixin_oc": "Официальный способ подключения бота от WeChat. Поддерживает только личные сообщения и создание одним сканированием QR-кода."
},
"configFileTitle": "Файл конфигурации",
"optional": "опционально",
"configHint": "Как настроить бота? Конфиг содержит модель, персонажа, базу знаний и набор плагинов.",
Expand Down
6 changes: 6 additions & 0 deletions dashboard/src/i18n/locales/zh-CN/features/platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
"step1Title": "选择消息平台类别",
"step1Hint": "想把机器人接入到哪里?如 QQ、企业微信、飞书、Discord、Telegram 等。",
"platformTypeLabel": "消息平台类别",
"platformTooltips": {
"qq_official": "QQ 官方机器人平台,支持私聊、拉入 QQ 群聊(只需要群主身份),支持 QQ 内 Markdown 渲染。一键扫码创建。",
"qq_official_webhook": "QQ 官方机器人平台,支持私聊、拉入 QQ 群聊(只需要群主身份),支持 QQ 内 Markdown 渲染。一键扫码创建。该 Webhook 方法需要您的环境拥有公网 IP 地址,因此推荐使用上面的 WebSocket 方法。",
"aiocqhttp": "知名的即时聊天软件协议。可接入 NapCat 等第三方服务来对接即时聊天软件。",
"weixin_oc": "微信官方提供的微信机器人接入方式,仅支持私聊。一键扫码创建。"
},
"configFileTitle": "配置文件",
"optional": "可选",
"configHint": "想如何配置机器人?配置文件包含了聊天模型、人格、知识库、插件范围等丰富的机器人配置项。",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "AstrBot"
version = "4.27.1"
version = "4.27.2"
description = "Easy-to-use multi-platform LLM chatbot and development framework"
readme = "README.md"
license = { text = "AGPL-3.0-or-later" }
Expand Down
Loading