mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-11-07 06:19:43 -10:00
fix(core): accept images for Qwen VL models under their Ollama names (#16309)
This commit is contained in:
1 parent
a051a6a796
commit
3b39fc2a19
2 files changed
+7
-2
No files matched your search
@@ -135,6 +135,9 @@ describe('defaultModalities', () => {
|
||||
['qwen-vl-max', ONLY_IMAGE_VIDEO],
|
||||
['qwen3-vl-plus', has({ image: true, video: true })],
|
||||
['qwen2.5-vl-32b-instruct', ONLY_IMAGE_VIDEO],
|
||||
['Ollama qwen3-vl tags', ONLY_IMAGE_VIDEO, 'qwen3-vl:8b'],
|
||||
['Ollama qwen2.5vl tags', ONLY_IMAGE_VIDEO, 'qwen2.5vl:7b'],
|
||||
['qwen2.5-vl without a size', ONLY_IMAGE_VIDEO, 'qwen2.5-vl'],
|
||||
[
|
||||
'quantized Qwen2.5-VL builds',
|
||||
ONLY_IMAGE_VIDEO,
|
||||
|
||||
@@ -59,10 +59,12 @@ const MODALITY_PATTERNS: Array<[RegExp, InputModalities]> = [
|
||||
|
||||
// Qwen VL (vision-language) models: image + video
|
||||
[/^qwen-vl-/, { image: true, video: true }],
|
||||
[/^qwen3-vl-/, { image: true, video: true }],
|
||||
// Ollama names these `qwen3-vl:8b` and `qwen2.5vl:7b`, so the tag strip
|
||||
// leaves a bare `qwen3-vl` or a `qwen2.5vl` with no hyphen.
|
||||
[/^qwen3-?vl(?:-|$)/, { image: true, video: true }],
|
||||
// Open-weight Qwen2-VL / Qwen2.5-VL, including sizes and quantized builds
|
||||
// the bundled catalog has no entry for (32B, 3B, -AWQ, -FP8).
|
||||
[/^qwen2(?:\.5)?-vl-/, { image: true, video: true }],
|
||||
[/^qwen2(?:\.5)?-?vl(?:-|$)/, { image: true, video: true }],
|
||||
// QVQ visual reasoning models.
|
||||
[/^qvq-/, { image: true }],
|
||||
|
||||
|
||||
Reference in new issue
Block a user