fix(core): recognize DeepSeek V4 Flash Vision image input - #3420
Conversation
Generated-by: OpenAI Codex
|
Thanks for filling in this metadata, especially for including the official docs link and the context window. I am closing this because #3605 is doing the same thing — registering Two things here differ from #3605, and I have raised both there — please take a look:
You also included 简体中文谢谢你补这条元数据,尤其是把官方文档链接和上下文窗口这些都写全了。 这条我准备关掉,因为 #3605 在做同一件事——同样在 不过你这条有两处内容是 #3605 没有的,我已经在那边提出来了,麻烦你也过去看一眼:
另外你还带了 |
Generated-by: OpenAI Codex
Summary
DeepSeek's first-party inventory returns
deepseek-v4-flash-vision-expas a bare ID. Without a catalog entry, Maka classifies it as text-only, filters image attachments, and displays only the raw model ID.Add explicit static metadata from DeepSeek's Vision guide and model details, including text-and-image input, friendly display metadata, documented context/output limits, structured output, tool calling, and reasoning controls. Keep this entry local to the first-party DeepSeek provider until the generated models.dev catalog catches up.
Add focused coverage for metadata and modality resolution, catalog projection from a bare provider ID, and the adjacent non-vision
deepseek-v4-flashmodel.Fixes #3417
Root cause
The first-party
/modelsresponse supplies no modality facts for the new model, and Maka's generated metadata snapshot predates the 2026-08-21 release.resolveModelVisionSupport()therefore finds no provider or static vision signal and resolves tofalse.Verification
npm --workspace @maka/core test— 578 passed, 0 failednpm run lint— passednpm run format:check— passednpm run build— passednpm run typecheck— passed./node_modules/.bin/knip --workspace apps/desktop— passed./node_modules/.bin/knip --workspace packages/ui— passeddeepseek-v4-flash-vision-exp, attached an image, and received an image-grounded responseBefore: Maka classifies the model as text-only and filters the attached image.
After: Maka recognizes the model as multimodal, sends the same image, and receives an image-grounded response.
Full
npm testwas not completed locally: an earlier run stalled inpackages/eval/dist/__tests__/provider-admission-integration.test.jsand was interrupted. The affected Core suite completed without failures, and required CI will exercise the remaining workspaces.Scope
experimental, while Maka has no exact matching lifecycle value.AI use
Select exactly one:
Tool(s) and scope:
OpenAI Codex assisted with official-documentation review, diagnosis, implementation, regression tests, local verification, and drafting this description. I reproduced the issue, reviewed the final diff and test results, and performed the manual smoke test.
Checklist
Does this PR entail a change in behavior?