Expand description
Batch API builders.
This module provides ergonomic builders for OpenAI Batch API operations,
which allow you to send asynchronous groups of requests with 24-hour turnaround
and 50% cost reduction compared to synchronous API calls.
Structs§
- Batch
JobBuilder - Builder for creating batch jobs.
- Batch
JobCancel Builder - Builder for cancelling batch jobs.
- Batch
JobList Builder - Builder for listing batch jobs.
- Batch
JobRetrieval Builder - Builder for retrieving batch job details.
Enums§
- Batch
Completion Window - Completion window for batch jobs.
- Batch
Endpoint - Supported endpoints for batch processing.
Functions§
- batch_
chat_ completions - Helper function to create a chat completions batch job.
- batch_
completions - Helper function to create a completions batch job.
- batch_
embeddings - Helper function to create an embeddings batch job.
- batch_
job_ with_ metadata - Helper function to create a batch job with metadata.
- cancel_
batch_ job - Helper function to cancel a batch job.
- get_
batch_ job - Helper function to retrieve a specific batch job.
- list_
batch_ jobs - Helper function to list batch jobs.