Skip to content

Commit 8b4dcea

Browse files
committed
feat: update doc
1 parent 00b1bfe commit 8b4dcea

8 files changed

Lines changed: 34 additions & 36 deletions

File tree

packages/cli/src/commands/advisor/recommend.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ export default defineCommand({
234234
},
235235
],
236236
examples: [
237-
'bl advisor recommend --message "我要做一个能理解图片的客服机器人"',
238-
'bl advisor recommend --message "做一个Agent自动根据用户意图生成动画片"',
239-
'bl advisor recommend --message "法律合同审查,要求高精准度"',
240-
'bl advisor recommend --message "做一个低成本高并发的在线客服" --output json',
241-
'bl advisor recommend --message "长文本摘要" --dry-run',
242-
"bl advisor recommend # 交互式输入需求",
237+
'bl advisor recommend --message "I need a visual-understanding chatbot"',
238+
'bl advisor recommend --message "Build an Agent that auto-generates animations"',
239+
'bl advisor recommend --message "Legal contract review, high precision required"',
240+
'bl advisor recommend --message "Low-cost high-concurrency online customer service" --output json',
241+
'bl advisor recommend --message "Long document summarization" --dry-run',
242+
"bl advisor recommend # Interactive input",
243243
],
244244
async run(config: Config, flags: GlobalFlags) {
245245
const positional = ((flags as Record<string, unknown>)._positional as string[]) ?? [];

packages/cli/src/commands/quota/check.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,20 @@ function printTable(rows: CheckRow[], noColor: boolean): void {
249249

250250
export default defineCommand({
251251
name: "quota check",
252-
description: "查看当前用量 vs 限流阈值 (Check current usage against rate limits)",
252+
description: "Check current usage against rate limits",
253253
usage: "bl quota check [--model <model>] [flags]",
254254
options: [
255255
{
256256
flag: "--model <model>",
257-
description: "模型名称,逗号分隔多个 (Model name(s), comma-separated)",
257+
description: "Model name(s), comma-separated",
258258
},
259259
{
260260
flag: "--period <minutes>",
261-
description: "查询最近 N 分钟的用量,默认 2 (Query usage for the last N minutes, default: 2)",
261+
description: "Query usage for the last N minutes (default: 2)",
262262
},
263263
{
264264
flag: "--region <region>",
265-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
265+
description: "API region (default: cn-beijing)",
266266
},
267267
],
268268
examples: [

packages/cli/src/commands/quota/history.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,24 @@ function printTable(records: LimitApplicationItem[], noColor: boolean, total: nu
9999

100100
export default defineCommand({
101101
name: "quota history",
102-
description: "查看提额历史记录 (View quota change history)",
102+
description: "View quota change history",
103103
usage: "bl quota history [flags]",
104104
options: [
105105
{
106106
flag: "--page <n>",
107-
description: "页码,默认 1 (Page number, default: 1)",
107+
description: "Page number (default: 1)",
108108
},
109109
{
110110
flag: "--page-size <n>",
111-
description: "每页条数,默认 10 (Page size, default: 10)",
111+
description: "Page size (default: 10)",
112112
},
113113
{
114114
flag: "--model <model>",
115-
description: "按模型名过滤 (Filter by model name)",
115+
description: "Filter by model name",
116116
},
117117
{
118118
flag: "--region <region>",
119-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
119+
description: "API region (default: cn-beijing)",
120120
},
121121
],
122122
examples: [

packages/cli/src/commands/quota/list.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,21 +160,20 @@ function printTable(models: ModelWithQpm[], noColor: boolean): void {
160160

161161
export default defineCommand({
162162
name: "quota list",
163-
description: "查看模型 RPM/TPM 限流值 (View model rate limits)",
163+
description: "View model RPM/TPM rate limits",
164164
usage: "bl quota list [--model <model>] [flags]",
165165
options: [
166166
{
167167
flag: "--model <model>",
168-
description: "模型名称,逗号分隔多个 (Model name(s), comma-separated)",
168+
description: "Model name(s), comma-separated",
169169
},
170170
{
171171
flag: "--all",
172-
description:
173-
"显示全部模型,不仅限于支持自助提额的 (Show all models, not just self-service ones)",
172+
description: "Show all models, not just self-service ones",
174173
},
175174
{
176175
flag: "--region <region>",
177-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
176+
description: "API region (default: cn-beijing)",
178177
},
179178
],
180179
examples: [

packages/cli/src/commands/quota/request.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,26 @@ async function fetchModelQpmInfo(
8181

8282
export default defineCommand({
8383
name: "quota request",
84-
description: "申请临时提额 (Request temporary quota increase)",
84+
description: "Request a temporary quota increase",
8585
usage: "bl quota request --model <model> --tpm <value> [flags]",
8686
options: [
8787
{
8888
flag: "--model <model>",
89-
description: "模型名称(必填)(Model name, required)",
89+
description: "Model name (required)",
9090
required: true,
9191
},
9292
{
9393
flag: "--tpm <value>",
94-
description: "目标 TPM 值(必填)(Target TPM value, required)",
94+
description: "Target TPM value (required)",
9595
required: true,
9696
},
9797
{
9898
flag: "--yes",
99-
description: "跳过降配确认 (Skip downgrade confirmation)",
99+
description: "Skip downgrade confirmation",
100100
},
101101
{
102102
flag: "--region <region>",
103-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
103+
description: "API region (default: cn-beijing)",
104104
},
105105
],
106106
examples: [

packages/cli/src/commands/usage/freetier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function fetchAllModelNames(config: Config, token: string): Promise<string
104104
export default defineCommand({
105105
name: "usage freetier",
106106
description:
107-
"Enable or disable auto-stop (用完即停) for free-tier models. Enables by default; use --off to disable",
107+
"Enable or disable auto-stop for free-tier models. Enables by default; use --off to disable",
108108
usage: "bl usage freetier <--model <model>[,model2,...] | --all> [--off] [flags]",
109109
options: [
110110
{

packages/cli/src/commands/usage/stats.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,29 +306,28 @@ function printModelTable(
306306

307307
export default defineCommand({
308308
name: "usage stats",
309-
description: "查询模型用量统计 (Query model usage statistics)",
309+
description: "Query model usage statistics",
310310
usage: "bl usage stats [--model <model>] [--days <days>] [flags]",
311311
options: [
312312
{
313313
flag: "--model <model>",
314-
description:
315-
"模型名称,逗号分隔多个;不指定则查全部概览 (Model name(s), comma-separated; omit for overview)",
314+
description: "Model name(s), comma-separated; omit for overview",
316315
},
317316
{
318317
flag: "--days <days>",
319-
description: "查询天数,默认 7 (Number of days, default: 7)",
318+
description: "Number of days (default: 7)",
320319
},
321320
{
322321
flag: "--type <type>",
323-
description: "模型类型: Text, Vision, Multimodal, Audio, Embedding",
322+
description: "Model type: Text, Vision, Multimodal, Audio, Embedding",
324323
},
325324
{
326325
flag: "--workspace-id <id>",
327-
description: "业务空间 ID (Workspace ID; env: BAILIAN_WORKSPACE_ID)",
326+
description: "Workspace ID (env: BAILIAN_WORKSPACE_ID)",
328327
},
329328
{
330329
flag: "--region <region>",
331-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
330+
description: "API region (default: cn-beijing)",
332331
},
333332
],
334333
examples: [

packages/cli/src/commands/workspace/list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ function printTable(workspaces: WorkspaceInfo[], noColor: boolean): void {
8686

8787
export default defineCommand({
8888
name: "workspace list",
89-
description: "列出所有业务空间 (List all workspaces)",
89+
description: "List all workspaces",
9090
usage: "bl workspace list [flags]",
9191
options: [
9292
{
9393
flag: "--list <n>",
94-
description: "返回数量限制 (Limit number of results)",
94+
description: "Limit number of results",
9595
},
9696
{
9797
flag: "--region <region>",
98-
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
98+
description: "API region (default: cn-beijing)",
9999
},
100100
],
101101
examples: ["bl workspace list", "bl workspace list --list 5", "bl workspace list --output json"],

0 commit comments

Comments
 (0)