Chuyển đến nội dung
Skillpedia
Agent84k · #1398

cli-batches

Skill này làm gì

Skill này chỉ cách gửi các tập lớn yêu cầu AI dưới dạng tác vụ hàng loạt từ dòng lệnh. Skill dành cho các nhóm cần xử lý chung nhiều lần gọi model và lưu kết quả vào file.

Khi nào nên dùng

  • ✓Khi người dùng muốn chạy nhiều yêu cầu AI thành một tác vụ hàng loạt.
  • ✓Khi người dùng muốn kiểm tra tiến độ của một lô hoặc hủy lô đó.
  • ✓Khi người dùng muốn tải kết quả hoặc lỗi của lô về một file.

Liên kết skill

https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-batches/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-batches/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gửi file JSONL chứa các prompt này dưới dạng một lô và lưu kết quả khi xong.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tải lên file đầu vào của lô, rồi khởi chạy một tác vụ với endpoint và khoảng thời gian đã chọn. Sau đó nó có thể chờ tác vụ hoàn thành. Kết quả và lỗi có thể được lưu vào file.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

<!-- 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.

Quick install

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

Subcommands

batches

Example:

omniroute batches

batches list

Flags:

  • --status <s>
  • --limit <n>

Example:

omniroute batches list

batches get <batchId>

Example:

omniroute batches get <batchId>

batches create

Flags:

  • --input-file <fileId>
  • --endpoint <e>
  • --completion-window <w>
  • --metadata <kv>

Example:

omniroute batches create

batches submit

Flags:

  • --jsonl <path>
  • --endpoint <e>
  • --wait

Example:

omniroute batches submit

batches cancel <batchId>

Flags:

  • --yes

Example:

omniroute batches cancel <batchId>

batches wait <batchId>

Flags:

  • --timeout <ms>

Example:

omniroute batches wait <batchId>

batches output <batchId>

Flags:

  • --out <path>

Example:

omniroute batches output <batchId>

batches errors <batchId>

Flags:

  • --out <path>

Example:

omniroute batches errors <batchId>

files

Example:

omniroute files

files list

Flags:

  • --purpose <p>
  • --limit <n>

Example:

omniroute files list

files get <fileId>

Example:

omniroute files get <fileId>

files upload <path>

Flags:

  • --purpose <p>

Example:

omniroute files upload <path>

files content <fileId>

Flags:

  • --out <path>

Example:

omniroute files content <fileId>

files delete <fileId>

Flags:

  • --yes

Example:

omniroute files delete <fileId>
Câu hỏi thường gặp

Đầu vào cần định dạng nào?

Đầu vào của lô là một file JSONL, và lệnh submit nhận đường dẫn jsonl qua tùy chọn.

Tôi có thể chờ lô hoàn thành không?

Có. Lệnh submit có tùy chọn wait, và một lệnh wait riêng nhận tham số timeout.

Tôi có thể dừng một lô không?

Có. Lệnh cancel dừng lô và sẽ hỏi xác nhận trừ khi bạn truyền cờ yes.

Chi tiết

Mô tả gốc của tác giả

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.

repo: cheaper-inference/OmniRoute

Độ phổ biến

Sao GitHub
84k
Vị trí xếp hạng
#1398
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự