Skip to content

v2.1.11

Choose a tag to compare

@Ayleovelle Ayleovelle released this 06 May 19:27
Immutable release. Only release title and notes can be modified.

v2.1.11

修复 AstrBot v4.24.2 agent request 阶段缓存残留导致的两类问题:

  • Error occurred while processing agent request: not a valid file: xxx.amr
  • 'dict' object has no attribute 'model_dump_for_context'

主要变化

  • event.extras / message_obj.extras 中的 requestreqllm_request 等 ProviderRequest 别名会被原地净化,不再被跳过。
  • model_dump_for_context() 的 AstrBot 请求对象会被识别并保留对象身份,避免被序列化成普通 dict 写回缓存。
  • run_context 支持 dict/mapping 形态清理,扩展 cached_contentcached_messageshistoryinput_messagesconversationsession 等缓存字段。
  • 普通 URL、普通 files/path 和普通 extras 会继续保留;只有确认含音频引用、Record.amr/.silk 等音频痕迹时才净化。

验证

  • py -3 -m py_compile astrbot_plugin_volcengine_asr\\main.py tests\\test_voice_workflow.py tests\\test_helpers.py
  • 手动加载 tests.conftest 后执行 70 条零参数回归:全部通过。

安装提醒

请下载本 Release 附件里的 astrbot_plugin_volcengine_asr.zip,不要使用 GitHub 自动生成的 Source code zip。