github AstrBotDevs/AstrBot v4.10.0-alpha.1

14 hours ago

What's Changed [XMAS UPDATE]

📢 在升级前,请完整阅读本次更新日志。

特别提醒:

  1. 该版本为 alpha.1 预览版本。
  2. 本次升级如果再降级,会由于提供商配置的变更,导致提供商配置错乱,需要手动删除后重新添加。
  3. 此版本 WebUI 包体相较上一个版本增加约 193%,共约 9.8 MB,升级可能会需要一些时间。
  4. 升级之后请务必确保 WebUI 和 AstrBot Core 版本一致,否则会产生预期之外的情况。(判断方法:日志中出现 WebUI 版本已是最新。 即为一致的版本,检测到 WebUI 版本 (xxx) 与当前 AstrBot 版本 (xxx) 不符。 即为不一致的版本。此版本的判断方法也可通查看 WebUI 右上角是否出现 Bot / Chat 的切换按钮控件来判断是否是新版本的 WebUI)。
  5. 如果有任何问题请提交 Issue 并附带 v4.10.0 tag。

重构与优化

  • 重构 Provider 页面和提供商的配置结构,将 Chat Provider 配置拆分为 Provider Source(提供商源)和 Provider(代表提供商源的各个模型),引入了提供商模型自动发现、模型元数据自动发现的功能,提供更加便捷的模型添加体验
  • ⚠️ 将 “MCP” 页面移动到了 “插件” 页面中
  • ⚠️ 将 “MCP” 页面中的工具管理移动到了 “插件” -> “管理行为” 中。
  • ⚠️ 将 “QQ 个人号(OneBot v11)” 机器人适配器类型更名为 “OneBot v11”,并将其 Logo 更改为 OneBot 的 Logo。
  • ⚠️ AstrBot WebChat 升级为 AstrBot ChatUI,入口从边栏修改为顶部(右上角)切换按钮。
  • 优化引用消息的逻辑,减少对模型输入缓存的破坏。

修复

  • ‼️ 修复部分情况下,分段回复无法正常分段的问题。
  • 修复处理工具返回结果的过程中,导致一些直接发送图片的工具(如生图工具)无法正确发送到用户的问题。
  • 修复 WebChat 部分情况下,上一条消息文字内容增量到下一条消息的问题。

新增

  • 支持指令管理,设置指令别名、解决指令冲突、查看指令详情等。入口:“插件” -> “管理行为”。
  • 支持 Google Gemini 3 系列引入的 Thinking Level 配置。
  • 支持记录每条 LLM 消息的耗时、Token 使用量、TTFT 数据,以及每次 Agent Loop 的各种统计数据。
  • AstrBot ChatUI 支持查看每条消息的 TTFT、Token 使用量数据。
  • AstrBot ChatUI 支持显示每次工具调用的耗时、参数和响应。
  • AstrBot ChatUI 支持渲染 Mermaid、LateX 内容,优化了 Code Block 的显示效果(使用 Monaco Editor),并减少 DOM 更新于内存占用。(Powered by Simon-He95/markstream-vue
  • 支持查看 Changelog 历史版本更新日志。
  • 🎄

What's Changed

  • chore(deps): bump actions/upload-artifact from 5 to 6 in the github-actions group by @dependabot[bot] in #4061
  • fix: incorrect type assignment when the agent is sending an image by @sukafon in #4050
  • fix: correct text accumulation logic in webchat by @Soulter in #4066
  • fix: omit empty content field for the LLM request after tool calls are completed by @sctop in #4008
  • revert: "fix: omit empty content field for the LLM request after tool calls are completed" by @Soulter in #4068
  • feat: implements command management and improve webui feature structure (#3904) by @ocetars in #3904
  • fix: inverted logic in segmented reply LLM-only filter by @Copilot in #4071
  • fix: validation error for ToolCall.extra_content in specific upstream model providers by @Soulter in #4102
  • chore: update OneBot platform adapter logo by @Soulter in #4106
  • feat: enhance tool call handling and agent stats tracking and UI integration for tool calls render by @Soulter in #4101
  • feat: supports thinking level for google gemini 3 series by @Soulter in #4104
  • perf: enhance chat components with theme and fullscreen toggles by @Soulter in #4116
  • refactor: SUPER AMAZING model provider refactor by @Soulter in #4065
  • fix: handle quoted messages correctly to prevent breaking cache by @kawayiYokami in #4112
  • feat: add KaTeX and Mermaid and computation friendly render support by @Soulter in #4118
  • feat: add changelog functionality and dialog component by @Soulter in #4135

New Contributors

Full Changelog: v4.9.2...v4.10.0-alpha.1

Don't miss a new AstrBot release

NewReleases is sending notifications on new releases.