Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/core/src/core/modalityDefaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ describe('defaultModalities', () => {
expect(m.audio).toBeUndefined();
});

it('returns image + video for qwen3.6-35b variants', () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] Test name says "variants" (plural) but only tests a single variant qwen3.6-35b-a3b-nvfp4. The regex /^qwen3\.6-35b/ is broad (matches all qwen3.6-35b-* models), so testing only one variant leaves a gap where future regex narrowing could silently regress other variants.

Consider either:

  • Renaming to 'returns image + video for qwen3.6-35b-a3b-nvfp4' to accurately reflect scope, or
  • Adding additional test cases for bare qwen3.6-35b and a quant-stripped variant like qwen3.6-35b-fp16

Nice to have: Add a normalization test with provider prefix (e.g., dashscope/qwen3.6-35b-a3b-nvfp4) in the normalization describe block.

— DeepSeek/deepseek-v4-pro via Qwen Code /review

const m = defaultModalities('qwen3.6-35b-a3b-nvfp4');
expect(m.image).toBe(true);
expect(m.video).toBe(true);
expect(m.pdf).toBeUndefined();
expect(m.audio).toBeUndefined();
});

it('returns text-only for qwen-turbo', () => {
expect(defaultModalities('qwen-turbo')).toEqual({});
});
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/core/modalityDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ const MODALITY_PATTERNS: Array<[RegExp, InputModalities]> = [

// Qwen coder / text models: text-only
[/^qwen3-coder-/, {}],
// Qwen3.6-35B-A3B (local quant variants) — image + video
[/^qwen3\.6-35b/, { image: true, video: true }],
[/^qwen/, {}],

// -------------------
Expand Down