This function cancels an in-progress batch created through the OpenAI API. The batch will be moved to a "cancelling" state and, eventually, "cancelled."
Arguments
- .batch_id
Character; the unique identifier for the batch to cancel.
- .dry_run
Logical; if
TRUE
, returns the constructed request without executing it (default:FALSE
).- .max_tries
Integer; maximum number of retries if the request fails (default:
3
).- .timeout
Integer; request timeout in seconds (default:
60
).