Description
在使用多模态模型(包括智谱 GLM-4.6V-Flash 和 Moonshot Kimi-K2.6)识别 WebP 格式图片时,API 返回 400 错误,错误码 1210,提示"图片输入格式/解析错误"。
Reproduction Steps
使用智谱 GLM-4.6V-Flash或agnes
向 AstrBot 发送一张 WebP 格式的图片
BOT 调用多模态模型(Kimi/智谱)识别图片
返回 400 错误,显示日志
AstrBot Version
v4.27.3
Operating System
Linux
Deployment Method
python uv
Message Platform Adapter
Onebot v11
Error Log
[2026-08-19 09:35:10.048] [Plug] [ERRO] 获取图片描述失败: Error code: 400 - {'error': {'code': '1210', 'message': '图片输入格式/解析错误'}}
[2026-08-19 09:35:13.450] [Core] [ERRO] 处理图片描述失败: Error code: 400 - {'error': {'code': '1210', 'message': '图片输入格式/解析错误'}}
[2026-08-19 09:58:22.693] [Core] [WARN] 图片格式转换失败,使用原始数据: a bytes-like object is required, not 'str'
Supplementary Information
fix.txt
123.txt
Checklist
Description
在使用多模态模型(包括智谱 GLM-4.6V-Flash 和 Moonshot Kimi-K2.6)识别 WebP 格式图片时,API 返回 400 错误,错误码 1210,提示"图片输入格式/解析错误"。
Reproduction Steps
使用智谱 GLM-4.6V-Flash或agnes
向 AstrBot 发送一张 WebP 格式的图片
BOT 调用多模态模型(Kimi/智谱)识别图片
返回 400 错误,显示日志
AstrBot Version
v4.27.3
Operating System
Linux
Deployment Method
python uv
Message Platform Adapter
Onebot v11
Error Log
Supplementary Information
fix.txt
123.txt
Checklist