fix(core): keep qwen3.6-flash and kimi-k2.6 presets text-only#5328
Conversation
modalityDefaults only marks the multimodal variants (qwen3.6-plus, kimi-k2.5) as image/video capable; qwen3.6-flash and kimi-k2.6 fall through to the text-only default. The Token Plan and Idealab presets still declared image/video for them, overstating what the models accept. Drop the stray modalities so they match the defaults, as a follow-up to the DeepSeek cleanup in QwenLM#5268.
|
@qwen-code /triage |
|
Thanks for the PR! Template is loosely followed — "What" / "Why" / "Reviewer Test Plan" / "Risk" sections are present and clear. Missing the "Tested on" matrix, "Linked Issues", and "中文说明" sections from the template. Not blocking for a focused data fix like this. On direction: solid. This is the same class of fix as #5268 (DeepSeek presets) — On approach: minimal and focused. Three Moving on to code review. 🔍 中文说明感谢贡献! 模板大体完整,"What" / "Why" / "Reviewer Test Plan" / "Risk" 都有,但缺少 "Tested on" 矩阵、"Linked Issues" 和 "中文说明"。对于这种小型数据修复不阻塞。 方向:对齐。与 #5268(DeepSeek presets 修复)同类问题—— 方案:精简聚焦。两个 presets 文件删除三行 进入代码审查 🔍 — Qwen Code · qwen3.7-max |
2a. Code ReviewIndependent assessment before reading the diff: for text-only models like The PR's approach matches exactly: three 2b. TestingNon-UI change (preset config data) — tmux not applicable. Unit test verification instead: All 8 tests pass — the updated assertions correctly verify text-only configs for 中文说明2a. 代码审查对照独立评估审查了 diff:对于 测试改动结构合理——在 Token Plan 测试中更新 无正确性问题、无安全隐患、无 AGENTS.md 违规。干净。 2b. 测试非 UI 改动(preset 配置数据),不适用 tmux。改用单元测试验证:8/8 通过。更新后的断言正确验证了纯文本配置,回归断言保护了多模态变体。 — Qwen Code · qwen3.7-max |
|
Stepping back: this is a clean, surgical data fix. Three lines of overstated modality flags removed from presets that My independent proposal before seeing the diff was exactly what the PR does: remove the Tests confirm the fix works: 8/8 pass, including new regression guards for the genuinely multimodal Plus/2.5 variants. If I had to maintain this in six months, I'd thank the author for keeping it small and well-tested. Approving. ✅ 中文说明总结:干净、精准的数据修复。从 preset 中删除三行夸大的模态标志,而 独立评估与 PR 实现完全一致:移除 Token Plan 的 批准。✅ — Qwen Code · qwen3.7-max |
qwen-code-ci-bot
left a comment
There was a problem hiding this comment.
LGTM, looks ready to ship. ✅
✅ Local build & verification — LGTM, ready to mergeBuilt the real artifacts from this PR's HEAD and verified the change end-to-end, including the shipped CLI chunk and the runtime modality fallback it relies on. Correct, complete, well-guarded by tests. Recommending merge. What this PR doesRemoves the overstated Environment
Why it's correct (data flow)
if (spec.modalities && Object.values(spec.modalities).some(Boolean)) {
parts.modalities = spec.modalities;
}So dropping the field makes the key absent, and at runtime the model resolves through
The fix simply makes the presets agree with Verification matrix
Fix confirmed in the shipped artifactsInspected the compiled
These presets are consumed by the real CLI provider-setup flow ( Notes (non-blocking)
Verdict: LGTM ✅ — a clean, complete data-consistency fix; presets now match 🇨🇳 中文版(点击展开)✅ 本地构建验证 — LGTM,可以合并我从该 PR 的 HEAD 在本地构建了真实产物,并端到端验证了改动,包括 CLI 实际发布的 chunk 以及它依赖的运行时 modality 回退逻辑。改动正确、完整、且有测试守护。建议合并。 这个 PR 做了什么从三个纯文本预设条目中移除了被夸大的 环境
为什么是对的(数据流)
if (spec.modalities && Object.values(spec.modalities).some(Boolean)) {
parts.modalities = spec.modalities;
}所以删掉该字段后这个 key 就不存在了,运行时该模型会走
这个修复本质上就是让预设和 验证矩阵
修复已在发布产物中确认检查了编译后的
这些预设被真实的 CLI provider 配置流程消费( 备注(均不阻塞)
结论:LGTM ✅ —— 一个干净、完整的数据一致性修复;预设现在和 |
|
@qwen-code /triage |
qwen-code-ci-bot
left a comment
There was a problem hiding this comment.
LGTM, looks ready to ship. ✅
What
Drop the stray
modalities: { image: true, video: true }from theqwen3.6-flashandkimi-k2.6entries in the Token Plan preset, and frombailian/kimi-k2.6in the Idealab preset.Why
modalityDefaults(packages/core/src/core/modalityDefaults.ts) only treats the multimodal variants —qwen3.6-plusandkimi-k2.5— as image/video capable; everything else under^qwen/^kimi-falls through to the text-only default. These three preset entries declared image/video anyway, which overstates what the models accept and can mislead the vision bridge.This is the same class of mismatch #5268 fixed for the DeepSeek presets — it just missed the Token Plan and Idealab entries. The genuinely multimodal
qwen3.6-plus/kimi-k2.5entries are left untouched.Reviewer Test Plan
The preset tests now assert
qwen3.6-flashandkimi-k2.6resolve to text-only, and add regression assertions thatqwen3.6-plus/kimi-k2.5keep their image+video modalities.Risk
Low. Removes overstated modality flags from three text-only presets only; the multimodal Plus/2.5 entries are unchanged and guarded by the new assertions.