pub struct CreateBatchRequest {
pub input_file_id: String,
pub endpoint: String,
pub completion_window: String,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Fields§
§input_file_id: StringThe ID of an uploaded file that contains requests for the new batch.
endpoint: StringThe endpoint to be used for all requests in the batch. Currently supported: /v1/chat/completions, /v1/embeddings, /v1/completions
completion_window: StringThe time frame within which the batch should be processed. Currently only “24h” is supported.
metadata: Option<HashMap<String, String>>Optional custom metadata for the batch.
Trait Implementations§
Source§impl Clone for CreateBatchRequest
impl Clone for CreateBatchRequest
Source§fn clone(&self) -> CreateBatchRequest
fn clone(&self) -> CreateBatchRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateBatchRequest
impl Debug for CreateBatchRequest
Source§impl Default for CreateBatchRequest
impl Default for CreateBatchRequest
Source§impl<'de> Deserialize<'de> for CreateBatchRequest
impl<'de> Deserialize<'de> for CreateBatchRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateBatchRequest
impl RefUnwindSafe for CreateBatchRequest
impl Send for CreateBatchRequest
impl Sync for CreateBatchRequest
impl Unpin for CreateBatchRequest
impl UnwindSafe for CreateBatchRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more