Use deepSeek-flash Model and it say can't support image input in 0.10.0
Description
Use deepSeek-flash Model and it say can't support image input on v0.10.0
Steps to reproduce
paste a image and then let it read
Expected behavior
Actual behavior
Impact
Environment
- OS:Windows 11
- codewhale version:0.10.0
- Install method:cargo install
codewhale doctorsummary:- Model/provider: deepseek-flash
- Terminal app:Windows Terminal
- Shell:PowerShell
Logs, screenshots, or recordings
Thanks @AccMoment for the report.
This issue is staying open for maintainer triage. CodeWhale gets better because people bring us real edge cases from real machines, providers, regions, and workflows.
If you can add a reproduction, logs, version output, screenshots, or the provider/model involved, that makes it much easier for us to verify and harvest the fix. Maintainers may comment /lgtmi to mark recurring issue reporters as approved so this intake note is skipped next time.
Additional diagnosis: root cause is stale bundled model metadata, not the DeepSeek API
Verified on codewhale 0.10.0 (1be1a703b975), Linux x86_64, npm install.
Environment
- codewhale 0.10.0 (1be1a703b975), installed via npm (
bin/downloads/codewhale) - provider
deepseek, default modeldeepseek-v4-flash; also reproduced withdeepseek-flash - Linux x86_64
- Actions tried: TUI paste path not needed —
read_mediareproduces directly, including headless (codewhale exec --auto)
1. The upstream API is fine — DeepSeek Flash accepts images now
Per the current docs (https://api-docs.deepseek.com/zh-cn/guides/vision):
deepseek-flash模型支持在文本之外输入图片 … 旧模型名deepseek-v4-flash-vision-exp仍可调用,但该模型已下线,其请求同样由最新的 Flash 模型承接。
Direct API test (bypassing codewhale), posting a 640x360 test PNG as a base64 image_url
block with model: "deepseek-v4-flash":
POST https://api.deepseek.com/beta/chat/completions→ HTTP 200POST https://api.deepseek.com/chat/completions→ HTTP 200- The model correctly reported the image contents: red circle, blue rectangle, text
ZQ7-8831andbanana 42 triangle - Response
modelfield isdeepseek-flash— for both thedeepseek-flashand the legacydeepseek-v4-flash-vision-exprequest name, confirming the docs' statement that the legacy id is served by the latest Flash model
So this is not a provider-side gap.
2. Root cause: bundled metadata in the binary marks Flash as text-only
Extracted from the 0.10.0 binary (bin/downloads/codewhale), every row carries
"provenance": "bundled":
deepseek-v4-flash modalities=["text"] provenance=bundled
deepseek-flash modalities=["text"] provenance=bundled
deepseek-v4-flash-vision-exp modalities=["text","image"] provenance=bundled
deepseek-v4-pro modalities=["text"] provenance=bundled
That table is inverted relative to upstream reality: the route that is allowed to take
images (deepseek-v4-flash-vision-exp) is the one DeepSeek has retired, while the route
that actually accepts images (deepseek-flash / deepseek-v4-flash) is pinned to
["text"] and rejected:
Error: read_media: the active model route does not support image input. Switch to a route
marked vision-capable with /model, or configure the route's image_input capability, then try again.
In the embedded web-client code the three-state presentation is explicit —
supported → "Vision", unsupported → "Text only", anything else → "Image support
unverified" — and the tool layer hard-rejects on unsupported while unknown is passed
through.
3. Things that do NOT fix it (all tried)
[features] vision_model = true— no effect. Control test: with the flag on anddeepseek-v4-flashselected,read_mediastill refuses with the identical error; with the flag off anddeepseek-v4-flash-vision-expselected, it succeeds.codewhale models --update --provider deepseek— refreshes the provider catalog only (after refreshdeepseek-v4-flash-vision-expdisappears from the list, since the provider no longer returns it) but the capability verdict is unchanged.[providers.deepseek] image_input = "supported"in config.toml — parses, no effect.codewhale config doctorexplicitly says it "does not classify" additional settings, so this is currently unvalidated either way.- Updating codewhale — npm
latestis 0.10.0, already installed; no newer release.
4. Workaround that does work today
Routing the same model through a custom openai-compatible provider leaves the route
without a bundled row, so its capability reads as unknown, which is passed through instead
of rejected — the image is actually delivered to the model:
[providers.ds-vision]
kind = "openai-compatible"
base_url = "https://api.deepseek.com"
api_key_env = "DEEPSEEK_API_KEY"
model = "deepseek-flash"
Verified end-to-end (codewhale exec --auto, tool-calling active): read_media succeeds,
image delivered at native 640x360 (transcoded png→jpeg on the wire), and the model read
ZQ7-8831 / banana 42 triangle correctly.
Using the legacy deepseek-v4-flash-vision-exp id also works and, per the docs, reaches the
same latest Flash model — but that id is retired upstream, so it is not a durable answer.
5. Suggestion
Update the bundled rows so the Flash family carries ["text","image"] (and drop or demote
the retired vision-exp row). The rule already proposed in #6529 — "a row may not mark a
capability Unsupported without a cited source; otherwise it stays Unknown" — would have kept
this from surfacing as a hard read_media refusal, so landing #6529 would also make the
failure mode self-correcting for users.
Happy to test a fix on Linux x86_64.