deeprelay batches results
Download a batch's output file (JSONL)
Download a batch's output file (JSONL)
Synopsis
Downloads a batch's output file: one JSONL line per request that ran, in no particular order. Match lines to your requests by custom_id. Each line's response.body is exactly what the synchronous endpoint returns, including usage.cost, and response.request_id is the id deeprelay requests get accepts.
The command looks up the batch's output_file_id for you. A batch with no output file yet (it has not finished, or no line succeeded) exits 1 with its current status.
The JSONL goes to stdout, or to a file with --out . The file is written with owner-only permissions (0600) and is only created once the server has answered, so a refused download leaves nothing behind; a transfer that breaks partway removes the partial file. Output files are kept for 30 days after the batch finishes.
Examples
deeprelay batches results batch_8f2c41d07a9be3615c0d2e7f --out output.jsonl
# Pipe straight into jq
deeprelay batches results batch_8f2c41d07a9be3615c0d2e7f | jq -r '.custom_id + "\t" + .response.body.choices[0].message.content'
deeprelay batches results <batch-id> [flags]
Options
-h, --help help for results
--out string Write the JSONL to this file (mode 0600) instead of stdout
Options inherited from parent commands
--api-base string API base URL (override with DEEPRELAY_API_BASE env) (default "https://api.deeprelay.ai/v1")
--debug Enable debug logging to stderr
--no-preflight Skip the plan/credit check before inference requests (override with DEEPRELAY_NO_PREFLIGHT env)
-o, --output string Output format: table|json (default table on TTY, json otherwise) (default "table")
SEE ALSO
- deeprelay batches - Submit and track off-peak batches