Merge pull request #4 from modelstudioai/feat/switch-model

feat(cli): update the default vision model to qwen3-vl-plus
This commit is contained in:
Gong Shiqi
2026-05-29 17:58:51 +08:00
committed by GitHub
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export default defineCommand({
},
],
examples: [
"bl file upload --file photo.jpg --model qwen-vl-max",
"bl file upload --file photo.jpg --model qwen3-vl-plus",
"bl file upload --file video.mp4 --model wan2.1-t2v-plus",
"bl file upload --file audio.wav --model qwen3-asr-flash",
"bl file upload --file cat.png --model qwen-image-2.0",
+2 -2
View File
@@ -68,7 +68,7 @@ export default defineCommand({
type: "array",
},
{ flag: "--prompt <text>", description: "Question about the content (default: auto-detected)" },
{ flag: "--model <model>", description: "Vision model (default: qwen-vl-max)" },
{ flag: "--model <model>", description: "Vision model (default: qwen3-vl-plus)" },
],
examples: [
"bl vision describe --image photo.jpg",
@@ -82,7 +82,7 @@ export default defineCommand({
| string
| undefined;
const videoInputs = (flags.video as string[] | undefined) ?? [];
const model = (flags.model as string) || "qwen-vl-max";
const model = (flags.model as string) || "qwen3-vl-plus";
// Auto-detect: if --image was given a video file, treat it as --video
if (image && isVideoInput(image)) {
+1 -1
View File
@@ -104,7 +104,7 @@ export async function visionDescribe(
input: VisionDescribeInput,
ctx: StepContext,
): Promise<ChatResponse> {
const model = input.model || "qwen-vl-max";
const model = input.model || "qwen3-vl-plus";
const images = Array.isArray(input.image) ? input.image : input.image ? [input.image] : [];
const hasVideo = !!input.video;
const defaultPrompt = hasVideo ? "Describe the video." : "Describe the image.";
@@ -30,7 +30,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file uploadDashScope", () =>
"file",
"upload",
"--model",
"qwen-vl-max",
"qwen3-vl-plus",
"--non-interactive",
]);
expect(exitCode).toBe(0);
@@ -58,7 +58,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file uploadDashScope", () =>
"--file",
testFile,
"--model",
"qwen-vl-max",
"qwen3-vl-plus",
"--non-interactive",
"--output",
"json",
@@ -67,7 +67,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file uploadDashScope", () =>
const data = parseStdoutJson<{ url?: string; model?: string; expires_in?: string }>(stdout);
expect(data.url).toBeDefined();
expect(data.url).toMatch(/^oss:\/\//);
expect(data.model).toBe("qwen-vl-max");
expect(data.model).toBe("qwen3-vl-plus");
expect(data.expires_in).toBe("48 hours");
}, 120_000);
});