mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 20:03:13 +08:00
d0ba3d3bd0
The OpenAI Chat proxy decided image support from host and model names: opencode.ai and DeepSeek hosts replaced every image with a text-only placeholder unless the model id contained "vision" or was allowlisted. Each new vision model on OpenCode Go (Kimi K3, Space Bunny, DeepSeek Flash) therefore told users the endpoint could not read images. Offer images to every model instead. When the upstream refuses a request that carried images with a recognizable image-input rejection, resend it once without images and, only if that succeeds, remember the endpoint and model as text-only for 30 minutes and record an info diagnostic. Failures about a particular image (format, MIME type, size, animation, image count) surface unchanged so one bad image cannot disable images for the model. The rejection matcher moves to a shared module used by the CLI error mapper and the proxy, and now also recognizes vLLM and OpenAI wording.