github AstrBotDevs/AstrBot v4.5.3

9 hours ago

What's Changed in v4.5.3

hotfix version of 4.5.2

  1. 修复:修正 get_tool_list 方法中工具字典推导式的错误导致的 WebUI MCP 页面工具列表无法显示的问题。

What's Changed in v4.5.2

  1. 修复:>= Python 3.12 版本下可能导致 LLM Tool 注册错误的问题。
  2. 优化:更好地适配 Class 方式注册 LLM Tool 的场景。引入 call 方法。
  3. 新增:ConversationManager 类支持 add_message_pair 方法,简化对话消息的添加操作。
  4. 新增:增加对 Tool Parameters 的参数验证,确保工具参数符合 JSON Schema 标准。
  5. 新增:增加 LLM Message Schema 定义,提升消息结构的规范性和一致性。
  6. 新增:支持对 WebUI 的侧边栏模块进行自定义配置(入口在侧边栏下方的设置页中)。
  7. 新增:支持卸载插件的时候指定是否删除插件数据 / 配置数据

Details

  • style: add ruff lint module of isort and pyupgrade, and some ruff check fix by @LIghtJUNction in #3214
  • [WIP] Translate mixed English comments to Chinese by @Copilot in #3256
  • Fix mutable default arguments in constructors and methods by @Copilot in #3247
  • Optimize string concatenation in loops: replace += with list.join() by @Copilot in #3246
  • Fix incorrect type annotations and errors by @Copilot in #3250
  • refactor: revise LLM message schema and fix the reload logic when using dataclass-based LLM Tool registration by @Soulter in #3234
  • Chore: Dockerfile by @LIghtJUNction in #3266
  • Replace insecure random with secrets module in cryptographic contexts by @Copilot in #3248
  • fix: 修复一些小错误 by @Dt8333 in #3267
  • feat: support options to delete plugins config and data by @railgun19457 in #3280
  • feat: add customizable sidebar module ordering by @Copilot in #3307
  • fix: llm tool register error by @Soulter in #3493

Full Changelog: v4.5.1...v4.5.3

Don't miss a new AstrBot release

NewReleases is sending notifications on new releases.