Skip to contents

This function retrieves the status of a batch.

Usage

batch_status(batch_id = "")

Arguments

batch_id

(chr) the batch id to check

Value

(tibble) information about the batch status

Details

For more information, see the OpenAI API documentation.

For more information, see the OpenAI API documentation.

See also

Examples

if (FALSE) {
  batch_status("batch_abc123")

  batch_file_info <- file_upload("abc123.jsonl")
  batch_job_info <- batch_file_info[["id"]] |>
    batch_create()
  batch_status <- batch_job_info[["id"]] |>
    batch_status()
  batch_status
}