pub trait ApiBatchwhere
Self: ApiBase,{
// Provided methods
fn create_batch(
&self,
request: BatchRequest,
) -> impl Send + Future<Output = Result<BatchObject>> { ... }
fn retrieve_batch(
&self,
id: &str,
) -> impl Send + Future<Output = Result<BatchObject>> { ... }
}Expand description
OpenAI batches API.
Provided Methods§
Sourcefn create_batch(
&self,
request: BatchRequest,
) -> impl Send + Future<Output = Result<BatchObject>>
fn create_batch( &self, request: BatchRequest, ) -> impl Send + Future<Output = Result<BatchObject>>
Create a batch.
Sourcefn retrieve_batch(
&self,
id: &str,
) -> impl Send + Future<Output = Result<BatchObject>>
fn retrieve_batch( &self, id: &str, ) -> impl Send + Future<Output = Result<BatchObject>>
Retrieve a batch by ID.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".