feat: autodetect qwen2.5vl image support
Signed-off-by: Fred Bricon <fbricon@gmail.com>
This commit is contained in:
parent
d4d39aaeb0
commit
40e73b0fa4
2 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ const MODEL_SUPPORTS_IMAGES: RegExp[] = [
|
|||
/llama-?4/, // might use something like /llama-?(?:[4-9](?:\.\d+)?|\d{2,}(?:\.\d+)?)/ for forward compat, if needed
|
||||
/\bgemma-?3(?!n)/, // gemma3 supports vision, but gemma3n doesn't!
|
||||
/\b(pali|med)gemma/,
|
||||
/qwen(.*)vl/,
|
||||
];
|
||||
|
||||
function modelSupportsImages(
|
||||
|
|
|
|||
|
|
@ -110,6 +110,9 @@ describe("BaseLLM", () => {
|
|||
|
||||
baseLLM.model = "foo/medgemma_4b_it_16Q";
|
||||
expect(baseLLM.supportsImages()).toBe(true);
|
||||
|
||||
baseLLM.model = "qwen2.5vl";
|
||||
expect(baseLLM.supportsImages()).toBe(true);
|
||||
});
|
||||
|
||||
test("should return false when modelSupportsImages returns false", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue