mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat(cli): update the default vision model to qwen3-vl-plus
This commit is contained in:
@@ -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&)
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
@@ -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&)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -18,7 +18,7 @@ export default defineCommand({
|
||||
options: [
|
||||
{
|
||||
flag: "--model <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;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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 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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user