Batches

class Batches

Functions

Link copied to clipboard
suspend fun cancel(name: String, config: CancelBatchJobConfig? = null)

Cancels a batch job. Only available for batch jobs that are running or pending.

Link copied to clipboard
suspend fun create(model: String, src: BatchJobSource, config: CreateBatchJobConfig? = null): BatchJob

Makes an API request to create the batch job.

Link copied to clipboard

Makes an API request to create the batch embeddings job.

Link copied to clipboard
suspend fun delete(name: String, config: DeleteBatchJobConfig? = null): DeleteResourceJob

Deletes a batch job.

Link copied to clipboard
suspend fun get(name: String, config: GetBatchJobConfig? = null): BatchJob

Gets a batch job.

Link copied to clipboard
fun list(config: ListBatchJobsConfig? = null): Pager<BatchJob>

Makes an API request to list batchJobs.