cancel_openai_batch {tidyllm} | R Documentation |
Cancel an In-Progress OpenAI Batch
Description
This function cancels an in-progress batch created through the OpenAI API. The batch will be moved to a "cancelling" state and, eventually, "cancelled."
Usage
cancel_openai_batch(.batch_id, .dry_run = FALSE, .max_tries = 3, .timeout = 60)
Arguments
.batch_id |
Character; the unique identifier for the batch to cancel. |
.dry_run |
Logical; if |
.max_tries |
Integer; maximum number of retries if the request fails (default: |
.timeout |
Integer; request timeout in seconds (default: |
Value
A list containing the response from the OpenAI API about the cancellation status.
[Package tidyllm version 0.3.4 Index]