What's Changed
- 修复:>= Python 3.12 版本下可能导致 LLM Tool 注册错误的问题。
- 优化:更好地适配 Class 方式注册 LLM Tool 的场景。引入
call方法。 - 新增:
ConversationManager类支持add_message_pair方法,简化对话消息的添加操作。 - 新增:增加对 Tool Parameters 的参数验证,确保工具参数符合 JSON Schema 标准。
- 新增:增加 LLM Message Schema 定义,提升消息结构的规范性和一致性。
- 新增:支持对 WebUI 的侧边栏模块进行自定义配置(入口在侧边栏下方的设置页中)。
What's Changed
- 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.2