From ee8aed0edfbe491b53b219ef895b5c7d9d0c5221 Mon Sep 17 00:00:00 2001 From: clh02467605 Date: Fri, 29 May 2026 16:57:45 +0800 Subject: [PATCH] feat(cli): update the default vision model to qwen3-vl-plus --- README.md | 2 +- README_CN.md | 2 +- packages/cli/README.md | 2 +- packages/cli/README_CN.md | 2 +- packages/cli/src/commands/console/call.ts | 2 +- packages/cli/src/commands/file/upload.ts | 2 +- packages/cli/src/commands/usage/free.ts | 6 +++--- packages/cli/src/commands/vision/describe.ts | 4 ++-- packages/cli/src/pipeline/steps/bl-api.ts | 2 +- packages/cli/tests/e2e/file-upload.e2e.test.ts | 6 +++--- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 521cacd..2f6e6a4 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ bl auth login --console # Browse apps / free-tier quota bl app list -bl usage free --model qwen3-max +bl usage free --model qwen3-vl-plus ``` > More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) diff --git a/README_CN.md b/README_CN.md index d6fb8a1..99cf636 100644 --- a/README_CN.md +++ b/README_CN.md @@ -97,7 +97,7 @@ bl auth login --console # 浏览应用 / 免费额度 bl app list -bl usage free --model qwen3-max +bl usage free --model qwen3-vl-plus ``` > 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli) diff --git a/packages/cli/README.md b/packages/cli/README.md index 521cacd..2f6e6a4 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -99,7 +99,7 @@ bl auth login --console # Browse apps / free-tier quota bl app list -bl usage free --model qwen3-max +bl usage free --model qwen3-vl-plus ``` > More examples and scenarios: [Aliyun Model Studio CLI Site](https://bailian.console.aliyun.com/cli?source_channel=cli_github&) diff --git a/packages/cli/README_CN.md b/packages/cli/README_CN.md index d6fb8a1..99cf636 100644 --- a/packages/cli/README_CN.md +++ b/packages/cli/README_CN.md @@ -97,7 +97,7 @@ bl auth login --console # 浏览应用 / 免费额度 bl app list -bl usage free --model qwen3-max +bl usage free --model qwen3-vl-plus ``` > 更多案例与使用场景:[阿里云百炼 CLI 官方主页](https://bailian.console.aliyun.com/cli) diff --git a/packages/cli/src/commands/console/call.ts b/packages/cli/src/commands/console/call.ts index b3d01ba..5a223e9 100644 --- a/packages/cli/src/commands/console/call.ts +++ b/packages/cli/src/commands/console/call.ts @@ -32,7 +32,7 @@ export default defineCommand({ }, ], examples: [ - `bl console call --api zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota --data '{"queryFreeTierQuotaRequest":{"models":["qwen3-max"]}}'`, + `bl console call --api zeldaEasy.broadscope-bailian.freeTrial.queryFreeTierQuota --data '{"queryFreeTierQuotaRequest":{"models":["qwen3-vl-plus"]}}'`, `bl console call --api some.api.name --data '{"key":"value"}' --region cn-beijing`, ], async run(config: Config, flags: GlobalFlags) { diff --git a/packages/cli/src/commands/file/upload.ts b/packages/cli/src/commands/file/upload.ts index edc4c12..62ec72d 100644 --- a/packages/cli/src/commands/file/upload.ts +++ b/packages/cli/src/commands/file/upload.ts @@ -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", diff --git a/packages/cli/src/commands/usage/free.ts b/packages/cli/src/commands/usage/free.ts index 215fdf1..a38b900 100644 --- a/packages/cli/src/commands/usage/free.ts +++ b/packages/cli/src/commands/usage/free.ts @@ -18,7 +18,7 @@ export default defineCommand({ options: [ { flag: "--model ", - description: "Model name to query (e.g. qwen3-max, qwen-turbo)", + description: "Model name to query (e.g. qwen3-vl-plus, qwen-turbo)", required: true, }, { @@ -27,9 +27,9 @@ export default defineCommand({ }, ], examples: [ - "bl usage free --model qwen3-max", + "bl usage free --model qwen3-vl-plus", "bl usage free --model qwen-turbo --output json", - "bl usage free --model qwen3-max --region cn-beijing", + "bl usage free --model qwen3-vl-plus --region cn-beijing", ], async run(config: Config, flags: GlobalFlags) { const model = flags.model as string; diff --git a/packages/cli/src/commands/vision/describe.ts b/packages/cli/src/commands/vision/describe.ts index f0121f2..153ae9a 100644 --- a/packages/cli/src/commands/vision/describe.ts +++ b/packages/cli/src/commands/vision/describe.ts @@ -68,7 +68,7 @@ export default defineCommand({ type: "array", }, { flag: "--prompt ", description: "Question about the content (default: auto-detected)" }, - { flag: "--model ", description: "Vision model (default: qwen-vl-max)" }, + { flag: "--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)) { diff --git a/packages/cli/src/pipeline/steps/bl-api.ts b/packages/cli/src/pipeline/steps/bl-api.ts index ee1aa85..b6f7e03 100644 --- a/packages/cli/src/pipeline/steps/bl-api.ts +++ b/packages/cli/src/pipeline/steps/bl-api.ts @@ -104,7 +104,7 @@ export async function visionDescribe( input: VisionDescribeInput, ctx: StepContext, ): Promise { - 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."; diff --git a/packages/cli/tests/e2e/file-upload.e2e.test.ts b/packages/cli/tests/e2e/file-upload.e2e.test.ts index fed7c1f..da6c611 100644 --- a/packages/cli/tests/e2e/file-upload.e2e.test.ts +++ b/packages/cli/tests/e2e/file-upload.e2e.test.ts @@ -30,7 +30,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file upload(DashScope)", () => "file", "upload", "--model", - "qwen-vl-max", + "qwen3-vl-plus", "--non-interactive", ]); expect(exitCode).toBe(0); @@ -58,7 +58,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file upload(DashScope)", () => "--file", testFile, "--model", - "qwen-vl-max", + "qwen3-vl-plus", "--non-interactive", "--output", "json", @@ -67,7 +67,7 @@ describe.skipIf(!isDashScopeE2EReady())("e2e: file upload(DashScope)", () => 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); });