Retrieve a batch
GET/v1/batches/:id
Gives a batch of the project. proxium asks the vendor for the state of an open batch first. When the vendor ended the batch, results holds one line for each request in the shape of an OpenAI batch output line: {custom_id, response: {status_code, body}, error}.
Request
Responses
- 200
- 401
- 404
- 502
- 503
The batch, with results when it ended.
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
The project has no batch with this id (batch_not_found).
The vendor refused the call or did not answer (upstream_failed).
The batch store is not configured (batch_store_unavailable), or the project's own key for the vendor could not be read (own_key_unreadable).