diff --git a/astrbot/cli/__init__.py b/astrbot/cli/__init__.py index 7ca4751eb..322b33f92 100644 --- a/astrbot/cli/__init__.py +++ b/astrbot/cli/__init__.py @@ -1 +1 @@ -__version__ = "4.21.0" +__version__ = "4.22.0" diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index cca5fcffe..20d9e0613 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -5,7 +5,7 @@ from typing import Any, TypedDict from astrbot.core.utils.astrbot_path import get_astrbot_data_path -VERSION = "4.21.0" +VERSION = "4.22.0" DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db") PERSONAL_WECHAT_CONFIG_METADATA = { "weixin_oc_base_url": { diff --git a/changelogs/v4.22.0.md b/changelogs/v4.22.0.md new file mode 100644 index 000000000..19be6d472 --- /dev/null +++ b/changelogs/v4.22.0.md @@ -0,0 +1,37 @@ +## What's Changed + +### 新增 + +- 新增**微信个人号**接入能力(微信官方提供)。([#6777](https://github.com/AstrBotDevs/AstrBot/pull/6777)) +- 新增图片压缩能力,支持图片尺寸、JPEG 质量限制。([#6794](https://github.com/AstrBotDevs/AstrBot/pull/6794)) +- 新增 WebUI 已安装插件置顶与拖拽重排能力。([#6776](https://github.com/AstrBotDevs/AstrBot/pull/6776)) + +### 优化 + +- 知识库为空时自动跳过检索,避免无效搜索调用。([#6750](https://github.com/AstrBotDevs/AstrBot/pull/6750)) +- 修复 `frontmatter` 转义换行符保留行为并更新相关测试与 CI 工作流(含文档与配置同步)。([#6783](https://github.com/AstrBotDevs/AstrBot/pull/6783)) + +### 修复 + +- Telegram 适配器改为导入 `Forbidden`,替代已弃用的 `Unauthorized`(兼容性修正)。([#6769](https://github.com/AstrBotDevs/AstrBot/pull/6769)) +- 处理 OpenAI Provider 中 `token usage metrics` 为 `None` 时的异常场景。([#6788](https://github.com/AstrBotDevs/AstrBot/pull/6788)) +- 保留全部 `CallToolResult` 的 `content` 项,避免工具调用上下文内容丢失。([#6149](https://github.com/AstrBotDevs/AstrBot/pull/6149)) + +## What's Changed (EN) + +### New Features + +- Added WeChat personal account support, including QR-code driven setup, message flow refactor, and media handling improvements.([#6777](https://github.com/AstrBotDevs/AstrBot/pull/6777)) +- Added pinning and drag-sorting for installed WebUI plugins.([#6776](https://github.com/AstrBotDevs/AstrBot/pull/6776)) +- Added image compression with max-size handling and temporary-file lifecycle management for improved image efficiency.([#6794](https://github.com/AstrBotDevs/AstrBot/pull/6794)) + +### Improvements + +- Skipped search execution when the entire knowledge base is empty.([#6750](https://github.com/AstrBotDevs/AstrBot/pull/6750)) +- Preserved escaped newlines in `frontmatter`, with related test and CI workflow updates.([#6783](https://github.com/AstrBotDevs/AstrBot/pull/6783)) + +### Bug Fixes + +- Replaced deprecated Telegram adapter import of `Unauthorized` with `Forbidden`.([#6769](https://github.com/AstrBotDevs/AstrBot/pull/6769)) +- Handled `None` values in OpenAI provider `token usage metrics`.([#6788](https://github.com/AstrBotDevs/AstrBot/pull/6788)) +- Kept all `CallToolResult.content` items to prevent losing tool-call context.([#6149](https://github.com/AstrBotDevs/AstrBot/pull/6149)) diff --git a/pyproject.toml b/pyproject.toml index 6bf948cad..5bad7e323 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "AstrBot" -version = "4.21.0" +version = "4.22.0" description = "Easy-to-use multi-platform LLM chatbot and development framework" readme = "README.md" requires-python = ">=3.12"