mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-17 11:07:11 +08:00
The 2MB cap (matching the long-connection upload path) does not work for the callback path: there the whole image is base64-embedded in an AES-encrypted body returned on every poll. A ~1.5MB image (base64 ~2.1MB, encrypted ~2.8MB) makes WeCom reject the finish packet and poll forever, which also surfaces as a truncated text bubble and WeCom's own timeout error. Cap well below that at 512KB so the finish packet is accepted. Co-authored-by: Cursor <cursoragent@cursor.com>