Upload a JSONL input file for the Batch API
Changed onUploads a JSONL file of batch requests and returns its file object: the file id, size in bytes, purpose, and an expiry time 30 days after the upload. Send multipart/form-data with a file part (the JSONL bytes, up to 200 MB and 50,000 records) and a purpose field set to batch. Each line is one request object with the BatchRequestRecord shape (including the optional openrelay.tool_config extension on chat bodies); the returned file id goes in input_file_id when creating a batch. The upload checks only that the file is JSONL. Its records are checked when a batch is created from it, which rejects the invalid ones and runs the rest.
Requires the batch.write permission. See Permissions for the roles and API key permissions that include it.
Request
- Base URLhttps://inference.openrelay.inc
- URLhttps://inference.openrelay.inc/v1/files
- AuthHTTP bearer
Request body multipart/form-data
Response
OK
Changes
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info