Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.25 KB

File metadata and controls

65 lines (43 loc) · 1.25 KB

open-batch-llm

A CLI tool to manage and run batch LLM calls.

Installation

pip install open-batch-llm

Or with uv:

uv tool install open-batch-llm

Usage

Validate a batch request file

open-batch-llm validate requests.json

Run batch requests (dry-run)

open-batch-llm run --dry-run requests.json

Run batch requests

open-batch-llm run requests.json --provider openai --model gpt-4o-mini --output results.json

Input file format

The input file must be a JSON array of request objects. Each object must contain a prompt key:

[
  {"id": "req-1", "prompt": "What is 2 + 2?"},
  {"id": "req-2", "prompt": "Name the planets of the solar system."}
]

Development

This project uses uv as the package manager and build system.

# Install dependencies
uv sync --all-groups

# Run tests
uv run pytest

# Build the package
uv build

Publishing

Releases are published to PyPI automatically via GitHub Actions when a new GitHub Release is created. The workflow uses Trusted Publishing (OIDC) — no API token is needed.