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 --versionbash
npm install -g omniroute # or: npx omniroute
omniroute --versionSubcommands
子命令
batches
batchesbatches
batchesExample:
bash
omniroute batches示例:
bash
omniroute batchesbatches list
batches listbatches list
batches listFlags:
--status <s>--limit <n>
Example:
bash
omniroute batches list参数:
--status <s>--limit <n>
示例:
bash
omniroute batches listbatches get <batchId>
batches get <batchId>batches get <batchId>
batches get <batchId>Example:
bash
omniroute batches get <batchId>示例:
bash
omniroute batches get <batchId>batches create
batches createbatches create
batches createFlags:
--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 createbatches submit
batches submitbatches submit
batches submitFlags:
--jsonl <path>--endpoint <e>--wait
Example:
bash
omniroute batches submit参数:
--jsonl <path>--endpoint <e>--wait
示例:
bash
omniroute batches submitbatches cancel <batchId>
batches cancel <batchId>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>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>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>batches errors <batchId>
batches errors <batchId>Flags:
--out <path>
Example:
bash
omniroute batches errors <batchId>参数:
--out <path>
示例:
bash
omniroute batches errors <batchId>files
filesfiles
filesExample:
bash
omniroute files示例:
bash
omniroute filesfiles list
files listfiles list
files listFlags:
--purpose <p>--limit <n>
Example:
bash
omniroute files list参数:
--purpose <p>--limit <n>
示例:
bash
omniroute files listfiles get <fileId>
files get <fileId>files get <fileId>
files get <fileId>Example:
bash
omniroute files get <fileId>示例:
bash
omniroute files get <fileId>files upload <path>
files upload <path>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>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>files delete <fileId>
files delete <fileId>Flags:
--yes
Example:
bash
omniroute files delete <fileId>参数:
--yes
示例:
bash
omniroute files delete <fileId>