[功能/错误] 建议放宽或支持配置 MAX_INPUT_IMAGES 限制(避免长程代理多模态任务触发 400 "Too many input images: maximum is 16")
作者: Xueshen6创建于 2026年9月28日更新于 2026年9月29日
[Feature/Bug] Recommended to relax or support the configuration of MAX_INPUT_IMAGES limit (to avoid long-term Agent multi-modal tasks triggering 400 "Too many input images: maximum is 16")
Problem background and phenomenon description
When using AntiGravity Tools Agent clients such as Codex Desktop / Claude Code to call Gemini models (such as Gemini-3.8-flash-high and so on) for long-term programming, question analysis, or document multi-modal tasks, there are occasional or stable crashes with the following error messages:
HTTP 400 Bad Request: Too many input images: maximum is 16Accident chain and source code localization
After investigating the gateway source code, the error is thrown by the gateway side's inbound pre-checking mechanism, located in src-tauri/src/proxy/handlers/OpenAI.rs:
- Hard-coded constants (around line 22):
内容来源: lbjlaq/Antigravity-Manager