cli-batches

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

Overview

概述

Submit and monitor batch inference jobs from the CLI. Upload and manage files for batch processing, retrieve results, and integrate batch pipelines with CI/CD workflows.
通过 CLI 提交和监控批量推理任务。上传及管理用于批量处理的文件、获取结果,并将批处理管道集成到 CI/CD 工作流中。

Quick install

快速安装

bash
npm install -g omniroute   # or: npx omniroute
omniroute --version
bash
npm install -g omniroute   # or: npx omniroute
omniroute --version

Subcommands

子命令

batches

batches

Example:
bash
omniroute batches
示例:
bash
omniroute batches

batches list

batches list

Flags:
  • --status <s>
  • --limit <n>
Example:
bash
omniroute batches list
参数:
  • --status <s>
  • --limit <n>
示例:
bash
omniroute batches list

batches get <batchId>

batches get <batchId>

Example:
bash
omniroute batches get <batchId>
示例:
bash
omniroute batches get <batchId>

batches create

batches create

Flags:
  • --input-file <fileId>
  • --endpoint <e>
  • --completion-window <w>
  • --metadata <kv>
Example:
bash
omniroute batches create
参数:
  • --input-file <fileId>
  • --endpoint <e>
  • --completion-window <w>
  • --metadata <kv>
示例:
bash
omniroute batches create

batches submit

batches submit

Flags:
  • --jsonl <path>
  • --endpoint <e>
  • --wait
Example:
bash
omniroute batches submit
参数:
  • --jsonl <path>
  • --endpoint <e>
  • --wait
示例:
bash
omniroute batches submit

batches cancel <batchId>

batches cancel <batchId>

Flags:
  • --yes
Example:
bash
omniroute batches cancel <batchId>
参数:
  • --yes
示例:
bash
omniroute batches cancel <batchId>

batches wait <batchId>

batches wait <batchId>

Flags:
  • --timeout <ms>
Example:
bash
omniroute batches wait <batchId>
参数:
  • --timeout <ms>
示例:
bash
omniroute batches wait <batchId>

batches output <batchId>

batches output <batchId>

Flags:
  • --out <path>
Example:
bash
omniroute batches output <batchId>
参数:
  • --out <path>
示例:
bash
omniroute batches output <batchId>

batches errors <batchId>

batches errors <batchId>

Flags:
  • --out <path>
Example:
bash
omniroute batches errors <batchId>
参数:
  • --out <path>
示例:
bash
omniroute batches errors <batchId>

files

files

Example:
bash
omniroute files
示例:
bash
omniroute files

files list

files list

Flags:
  • --purpose <p>
  • --limit <n>
Example:
bash
omniroute files list
参数:
  • --purpose <p>
  • --limit <n>
示例:
bash
omniroute files list

files get <fileId>

files get <fileId>

Example:
bash
omniroute files get <fileId>
示例:
bash
omniroute files get <fileId>

files upload <path>

files upload <path>

Flags:
  • --purpose <p>
Example:
bash
omniroute files upload <path>
参数:
  • --purpose <p>
示例:
bash
omniroute files upload <path>

files content <fileId>

files content <fileId>

Flags:
  • --out <path>
Example:
bash
omniroute files content <fileId>
参数:
  • --out <path>
示例:
bash
omniroute files content <fileId>

files delete <fileId>

files delete <fileId>

Flags:
  • --yes
Example:
bash
omniroute files delete <fileId>
参数:
  • --yes
示例:
bash
omniroute files delete <fileId>