[错误] 图片预处理缺少字节体积保护:合规图片原样直通 + 历史图片不重新处理,导致 413 request_too_large
作者: MostimaBridges创建于 2026年9月15日更新于 2026年9月15日
- Use the built-in Agent, keep the default values of
provider_settings.image_compress_enabledandimage_compress_options.max_size(true and 1280, respectively). - Prepare a high-entropy image that meets the criteria of "PNG or JPEG + EXIF orientation is normal + the long edge is not greater than 1280" but has a significantly larger size than 5 MB (for example, a 1280×1280 RGBA PNG encoded with random content, approximately 6.26 MiB).
- Send the image through any message platform adapter. Repeat sending several such images in the same session.
- The request body will increase with the history, eventually returning a 413 error and throwing an "All chat models failed" error.
内容来源: AstrBotDevs/AstrBot