Skip to content

dev-ankit/open-batch-llm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A project to manage batch llm calls

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages