Skip to content

Commit 0743cb5

Browse files
committed
chore: bump version to 4.21.0
1 parent 5419efb commit 0743cb5

File tree

4 files changed

+112
-3
lines changed

4 files changed

+112
-3
lines changed

astrbot/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.20.1"
1+
__version__ = "4.21.0"

astrbot/core/config/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
77

8-
VERSION = "4.20.1"
8+
VERSION = "4.21.0"
99
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
1010

1111
WEBHOOK_SUPPORTED_PLATFORMS = [

changelogs/v4.21.0.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
## What's Changed
2+
3+
### 新增
4+
5+
- 为插件市场新增分类筛选并优化界面组件。([#6762](https://github.com/AstrBotDevs/AstrBot/pull/6762)
6+
- 新增 Kimi Coding Plan Provider(兼容 Anthropic API)。([#6559](https://github.com/AstrBotDevs/AstrBot/pull/6559)
7+
- 统一并重命名 `skill.md` 文件为 `SKILL.md`。([#6757](https://github.com/AstrBotDevs/AstrBot/pull/6757)
8+
- 新增 Ollama 关闭思考模式开关。([#5941](https://github.com/AstrBotDevs/AstrBot/pull/5941)
9+
- 新增小米 MiMo TTS 与 STT Provider。([#6643](https://github.com/AstrBotDevs/AstrBot/pull/6643)
10+
- 新增多模态上下文 token 计数能力(图片、音频与思维链)。([#6596](https://github.com/AstrBotDevs/AstrBot/pull/6596)
11+
- 新增按元信息名称安装插件并校验可导入标识符。([#6530](https://github.com/AstrBotDevs/AstrBot/pull/6530)
12+
13+
### 优化
14+
15+
- 降低 `kook_type``StrEnum``(str, Enum)` 以兼容旧版本 Python。([#6512](https://github.com/AstrBotDevs/AstrBot/pull/6512)
16+
- 优化 WebChat 消息处理:提前保存消息并增强流式补全。([#6698](https://github.com/AstrBotDevs/AstrBot/pull/6698)
17+
- 优化 Dashboard 中移动端 persona 选择器布局。([#5907](https://github.com/AstrBotDevs/AstrBot/pull/5907)
18+
- 优化 Dashboard,减少 MDI icon font 范围并自托管 Google Fonts。([#6532](https://github.com/AstrBotDevs/AstrBot/pull/6532)
19+
- 使用 Pydantic 重构 KOOK 适配器数据模型以提升消息结构解析与校验性能。([#5719](https://github.com/AstrBotDevs/AstrBot/pull/5719)
20+
- 调整文档术语与表达(“消息平台”改为“机器人”等)并优化更新说明文字。([#6568](https://github.com/AstrBotDevs/AstrBot/pull/6568)
21+
22+
### 修复
23+
24+
- 修复 web search tools 中被禁用系统函数时未正确生效的问题。([#6584](https://github.com/AstrBotDevs/AstrBot/pull/6584)
25+
- 跳过空的知识库嵌入批次,避免不必要计算。([#6106](https://github.com/AstrBotDevs/AstrBot/pull/6106)
26+
- 修复 Feishu opus 文件在 Whisper API STT 场景下未正确转换的问题。([#6078](https://github.com/AstrBotDevs/AstrBot/pull/6078)
27+
- 修复 Lark 在工具调用中断时卡片创建与重续流程。([#6743](https://github.com/AstrBotDevs/AstrBot/pull/6743)
28+
- 修复 Windows 环境下 skill 文件编码兼容问题。([#6058](https://github.com/AstrBotDevs/AstrBot/pull/6058)
29+
- 修复 WebChat 单独渲染的 HTML 回复被错误显示的问题。([#6074](https://github.com/AstrBotDevs/AstrBot/pull/6074)
30+
- 修复 Gemini 数组 schema 缺少 `items` 字段的问题。([#6051](https://github.com/AstrBotDevs/AstrBot/pull/6051)
31+
- 修复 skills 使用硬编码工作区路径的问题,改为使用缓存中的真实沙箱路径。([#6331](https://github.com/AstrBotDevs/AstrBot/pull/6331)
32+
- 修复 subagent 工具调用超时传递,修正 `tool_call_timeout` 并将默认超时从 60 秒提升到 120 秒。([#6713](https://github.com/AstrBotDevs/AstrBot/pull/6713)
33+
- 修复 `skills-like` 下缺失 `extra_user_content_parts` 时未注入图片说明的问题。([#6710](https://github.com/AstrBotDevs/AstrBot/pull/6710)
34+
- 修复 `/stop` 后继续处理后续 follow-up 消息的问题。([#6704](https://github.com/AstrBotDevs/AstrBot/pull/6704)
35+
- 修复核心流程在 stop 时中断子代理工具等待的行为。([#5850](https://github.com/AstrBotDevs/AstrBot/pull/5850)
36+
- 修复 Windows 平台 stdio MCP 服务 `PATHEXT` 丢失的问题。([#5822](https://github.com/AstrBotDevs/AstrBot/pull/5822)
37+
- 修复 Telegram 轮询重启机制,失败时自动恢复循环。([#6648](https://github.com/AstrBotDevs/AstrBot/pull/6648)
38+
- 修复 `/stop` 后 follow-up 状态未清理导致后续触发继续运行的问题。([#6656](https://github.com/AstrBotDevs/AstrBot/pull/6656)
39+
- 修复 OpenAI 配置日志,改进代理与 API Base 的可读性与排障能力。([#6669](https://github.com/AstrBotDevs/AstrBot/pull/6669)
40+
- 修复长工具调用中截断逻辑误删唯一 user 消息的问题。([#6198](https://github.com/AstrBotDevs/AstrBot/pull/6198)
41+
- 修复截断器移除唯一用户消息导致部分 provider 返回 `400` 的问题。([#6581](https://github.com/AstrBotDevs/AstrBot/pull/6581)
42+
- 修复 ID 白名单为空时提示文案不清晰的问题。([#6611](https://github.com/AstrBotDevs/AstrBot/pull/6611)
43+
- 修复 MoonshotAI 官方 API 下 OpenAI token usage 缺失问题。([#6618](https://github.com/AstrBotDevs/AstrBot/pull/6618)
44+
- 提升 Wecom AI Bot 流式可读性与速度(限流处理),改善卡顿与显示体验。([#6610](https://github.com/AstrBotDevs/AstrBot/pull/6610)
45+
- 修复 Wecom 长连接回复消失的问题。([#6606](https://github.com/AstrBotDevs/AstrBot/pull/6606)
46+
- 修复 Windows 打包运行时 pip/native 构建环境配置问题。([#6575](https://github.com/AstrBotDevs/AstrBot/pull/6575)
47+
- 修复仅在显式配置时传递 embedding `dimensions`,避免无效参数干扰。([#6432](https://github.com/AstrBotDevs/AstrBot/pull/6432)
48+
- 修复 `register_agent` 装饰器导致的 `NameError`。([#5765](https://github.com/AstrBotDevs/AstrBot/pull/5765)
49+
- 修复默认 persona 场景下的 subagent 查询失败问题。([#5672](https://github.com/AstrBotDevs/AstrBot/pull/5672)
50+
- 修复 Windows 下 skill 读取失败问题。([#6490](https://github.com/AstrBotDevs/AstrBot/pull/6490)
51+
- 修复 `SKILL.md` 多行 frontmatter 解析问题。([#6460](https://github.com/AstrBotDevs/AstrBot/pull/6460)
52+
- 修复 SQLite `database is locked` 问题,新增繁忙超时处理。([#6474](https://github.com/AstrBotDevs/AstrBot/pull/6474)
53+
- 修复工作流限制仅允许上游仓库触发的报错场景。([#6531](https://github.com/AstrBotDevs/AstrBot/pull/6531)
54+
55+
---
56+
57+
## What's Changed (EN)
58+
59+
### New Features
60+
61+
- Added category filtering for market plugins and enhanced UI components.
62+
- Normalized and renamed `skill.md` files to `SKILL.md`.
63+
- Added a toggle to disable thinking mode in Ollama.
64+
- Added Xiaomi MiMo TTS & STT providers.
65+
- Added Kimi Coding Plan provider with Anthropic API compatibility.
66+
- Added context token counting support for multimodal content (images, audio, and chain-of-thought).
67+
- Added plugin installation by metadata name and validated importable identifiers.
68+
69+
### Improvements
70+
71+
- Refactored `StrEnum` to `(str, Enum)` in `kook_type` for backward compatibility.
72+
- Enhanced WebChat message handling with proactive saving and streaming completion.
73+
- Simplified dashboard persona selector layout for mobile screens.
74+
- Subset MDI icon font and self-hosted Google Fonts in dashboard.
75+
- Implemented Pydantic data models for KOOK adapter for better retrieval and schema validation.
76+
- Updated documentation wording for incomplete updates terminology.
77+
78+
### Bug Fixes
79+
80+
- Fixed disabled system functions in web search tools.
81+
- Skipped empty knowledge-base embedding batches.
82+
- Converted Feishu opus files for Whisper API STT.
83+
- Deferred Lark card creation and renewal on tool call break.
84+
- Added fallback for Windows skill file encodings.
85+
- Rendered standalone HTML replies as code in WebChat.
86+
- Ensured Gemini array schemas always include `items`.
87+
- Fixed skills path resolution to use cached sandbox path instead of hardcoded workspace root.
88+
- Passed `tool_call_timeout` to subagent handsoff/cron/background tasks and increased default timeout to 120 seconds.
89+
- Fixed `skills-like` re-query missing `extra_user_content_parts` causing image caption not injected.
90+
- Rejected follow-up messages after `/stop` request.
91+
- Interrupted subagent tool waits on stop.
92+
- Preserved `PATHEXT` for stdio MCP servers on Windows.
93+
- Added automatic restart for Telegram polling loop on failure.
94+
- Fixed follow-up persistence logic after `/stop` trigger.
95+
- Improved OpenAI proxy/API base logging.
96+
- Prevented truncation logic from removing the only user message in long tool-calling conversations.
97+
- Fixed truncation removing the only user message and returning `400` for some providers.
98+
- Updated ID whitelist empty-configuration hint wording.
99+
- Fixed token usage with MoonshotAI official API.
100+
- Improved Wecom AI Bot streaming readability and speed via throttling.
101+
- Prevented Wecom AI Bot long connection replies from disappearing.
102+
- Set packaged Windows runtime build env for pip native builds.
103+
- Only pass embedding dimensions when explicitly configured.
104+
- Fixed `register_agent` decorator `NameError`.
105+
- Fixed subagent lookup failure when using default persona.
106+
- Fixed reading skills on Windows.
107+
- Fixed multiline frontmatter parsing in `SKILL.md`.
108+
- Fixed SQLite `database is locked` with busy timeout.
109+
- Restricted workflows to upstream repo.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "AstrBot"
3-
version = "4.20.1"
3+
version = "4.21.0"
44
description = "Easy-to-use multi-platform LLM chatbot and development framework"
55
readme = "README.md"
66
requires-python = ">=3.12"

0 commit comments

Comments
 (0)