Normalize model IDs and cover rolling Qwen 3.8 tags

This commit is contained in:
Thorsten Sommer 2026-09-11 08:40:40 +02:00
parent 954012936f
commit 9dde4e70b6
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -165,7 +165,24 @@ public static partial class ProviderExtensions
modelName.IndexOf("qwen38-27b") is not -1)
return
[
Capability.TEXT_INPUT, Capability.MULTIPLE_IMAGE_INPUT, Capability.VIDEO_INPUT,
Capability.TEXT_INPUT, Capability.MULTIPLE_IMAGE_INPUT,
Capability.TEXT_OUTPUT,
Capability.REASONING_BY_DEFAULT, Capability.FUNCTION_CALLING,
Capability.CHAT_COMPLETION_API,
];
//
// Any other Qwen 3.8 checkpoint. The three checks above all need a size or a variant
// in the name, which the rolling tags do not carry: Ollama serves the 27B checkpoint
// as "qwen3.8:latest". Without this, such a name would fall through to the generic
// Qwen rule and lose everything the family can do. The 27B checkpoint is what the
// rolling tag points to, so it decides what this tier promises.
//
if(modelName.IndexOf("qwen3.8") is not -1)
return
[
Capability.TEXT_INPUT, Capability.MULTIPLE_IMAGE_INPUT,
Capability.TEXT_OUTPUT,
Capability.REASONING_BY_DEFAULT, Capability.FUNCTION_CALLING,