mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat: update doc
This commit is contained in:
@@ -234,12 +234,12 @@ export default defineCommand({
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
'bl advisor recommend --message "我要做一个能理解图片的客服机器人"',
|
||||
'bl advisor recommend --message "做一个Agent自动根据用户意图生成动画片"',
|
||||
'bl advisor recommend --message "法律合同审查,要求高精准度"',
|
||||
'bl advisor recommend --message "做一个低成本高并发的在线客服" --output json',
|
||||
'bl advisor recommend --message "长文本摘要" --dry-run',
|
||||
"bl advisor recommend # 交互式输入需求",
|
||||
'bl advisor recommend --message "I need a visual-understanding chatbot"',
|
||||
'bl advisor recommend --message "Build an Agent that auto-generates animations"',
|
||||
'bl advisor recommend --message "Legal contract review, high precision required"',
|
||||
'bl advisor recommend --message "Low-cost high-concurrency online customer service" --output json',
|
||||
'bl advisor recommend --message "Long document summarization" --dry-run',
|
||||
"bl advisor recommend # Interactive input",
|
||||
],
|
||||
async run(config: Config, flags: GlobalFlags) {
|
||||
const positional = ((flags as Record<string, unknown>)._positional as string[]) ?? [];
|
||||
|
||||
@@ -249,20 +249,20 @@ function printTable(rows: CheckRow[], noColor: boolean): void {
|
||||
|
||||
export default defineCommand({
|
||||
name: "quota check",
|
||||
description: "查看当前用量 vs 限流阈值 (Check current usage against rate limits)",
|
||||
description: "Check current usage against rate limits",
|
||||
usage: "bl quota check [--model <model>] [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--model <model>",
|
||||
description: "模型名称,逗号分隔多个 (Model name(s), comma-separated)",
|
||||
description: "Model name(s), comma-separated",
|
||||
},
|
||||
{
|
||||
flag: "--period <minutes>",
|
||||
description: "查询最近 N 分钟的用量,默认 2 (Query usage for the last N minutes, default: 2)",
|
||||
description: "Query usage for the last N minutes (default: 2)",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
|
||||
@@ -99,24 +99,24 @@ function printTable(records: LimitApplicationItem[], noColor: boolean, total: nu
|
||||
|
||||
export default defineCommand({
|
||||
name: "quota history",
|
||||
description: "查看提额历史记录 (View quota change history)",
|
||||
description: "View quota change history",
|
||||
usage: "bl quota history [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--page <n>",
|
||||
description: "页码,默认 1 (Page number, default: 1)",
|
||||
description: "Page number (default: 1)",
|
||||
},
|
||||
{
|
||||
flag: "--page-size <n>",
|
||||
description: "每页条数,默认 10 (Page size, default: 10)",
|
||||
description: "Page size (default: 10)",
|
||||
},
|
||||
{
|
||||
flag: "--model <model>",
|
||||
description: "按模型名过滤 (Filter by model name)",
|
||||
description: "Filter by model name",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
|
||||
@@ -160,21 +160,20 @@ function printTable(models: ModelWithQpm[], noColor: boolean): void {
|
||||
|
||||
export default defineCommand({
|
||||
name: "quota list",
|
||||
description: "查看模型 RPM/TPM 限流值 (View model rate limits)",
|
||||
description: "View model RPM/TPM rate limits",
|
||||
usage: "bl quota list [--model <model>] [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--model <model>",
|
||||
description: "模型名称,逗号分隔多个 (Model name(s), comma-separated)",
|
||||
description: "Model name(s), comma-separated",
|
||||
},
|
||||
{
|
||||
flag: "--all",
|
||||
description:
|
||||
"显示全部模型,不仅限于支持自助提额的 (Show all models, not just self-service ones)",
|
||||
description: "Show all models, not just self-service ones",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
|
||||
@@ -81,26 +81,26 @@ async function fetchModelQpmInfo(
|
||||
|
||||
export default defineCommand({
|
||||
name: "quota request",
|
||||
description: "申请临时提额 (Request temporary quota increase)",
|
||||
description: "Request a temporary quota increase",
|
||||
usage: "bl quota request --model <model> --tpm <value> [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--model <model>",
|
||||
description: "模型名称(必填)(Model name, required)",
|
||||
description: "Model name (required)",
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
flag: "--tpm <value>",
|
||||
description: "目标 TPM 值(必填)(Target TPM value, required)",
|
||||
description: "Target TPM value (required)",
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
flag: "--yes",
|
||||
description: "跳过降配确认 (Skip downgrade confirmation)",
|
||||
description: "Skip downgrade confirmation",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
|
||||
@@ -104,7 +104,7 @@ async function fetchAllModelNames(config: Config, token: string): Promise<string
|
||||
export default defineCommand({
|
||||
name: "usage freetier",
|
||||
description:
|
||||
"Enable or disable auto-stop (用完即停) for free-tier models. Enables by default; use --off to disable",
|
||||
"Enable or disable auto-stop for free-tier models. Enables by default; use --off to disable",
|
||||
usage: "bl usage freetier <--model <model>[,model2,...] | --all> [--off] [flags]",
|
||||
options: [
|
||||
{
|
||||
|
||||
@@ -306,29 +306,28 @@ function printModelTable(
|
||||
|
||||
export default defineCommand({
|
||||
name: "usage stats",
|
||||
description: "查询模型用量统计 (Query model usage statistics)",
|
||||
description: "Query model usage statistics",
|
||||
usage: "bl usage stats [--model <model>] [--days <days>] [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--model <model>",
|
||||
description:
|
||||
"模型名称,逗号分隔多个;不指定则查全部概览 (Model name(s), comma-separated; omit for overview)",
|
||||
description: "Model name(s), comma-separated; omit for overview",
|
||||
},
|
||||
{
|
||||
flag: "--days <days>",
|
||||
description: "查询天数,默认 7 (Number of days, default: 7)",
|
||||
description: "Number of days (default: 7)",
|
||||
},
|
||||
{
|
||||
flag: "--type <type>",
|
||||
description: "模型类型: Text, Vision, Multimodal, Audio, Embedding",
|
||||
description: "Model type: Text, Vision, Multimodal, Audio, Embedding",
|
||||
},
|
||||
{
|
||||
flag: "--workspace-id <id>",
|
||||
description: "业务空间 ID (Workspace ID; env: BAILIAN_WORKSPACE_ID)",
|
||||
description: "Workspace ID (env: BAILIAN_WORKSPACE_ID)",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: [
|
||||
|
||||
@@ -86,16 +86,16 @@ function printTable(workspaces: WorkspaceInfo[], noColor: boolean): void {
|
||||
|
||||
export default defineCommand({
|
||||
name: "workspace list",
|
||||
description: "列出所有业务空间 (List all workspaces)",
|
||||
description: "List all workspaces",
|
||||
usage: "bl workspace list [flags]",
|
||||
options: [
|
||||
{
|
||||
flag: "--list <n>",
|
||||
description: "返回数量限制 (Limit number of results)",
|
||||
description: "Limit number of results",
|
||||
},
|
||||
{
|
||||
flag: "--region <region>",
|
||||
description: "API 区域,默认 cn-beijing (API region, default: cn-beijing)",
|
||||
description: "API region (default: cn-beijing)",
|
||||
},
|
||||
],
|
||||
examples: ["bl workspace list", "bl workspace list --list 5", "bl workspace list --output json"],
|
||||
|
||||
Reference in New Issue
Block a user