pub enum CreateBatchRequestEndpoint {
V1Responses,
V1ChatCompletions,
V1Embeddings,
V1Completions,
}
Expand description
The endpoint to be used for all requests in the batch. Currently /v1/responses
, /v1/chat/completions
, /v1/embeddings
, and /v1/completions
are supported. Note that /v1/embeddings
batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
Variants§
V1Responses
/v1/responses
V1ChatCompletions
/v1/chat/completions
V1Embeddings
/v1/embeddings
V1Completions
/v1/completions
Trait Implementations§
Source§impl Clone for CreateBatchRequestEndpoint
impl Clone for CreateBatchRequestEndpoint
Source§fn clone(&self) -> CreateBatchRequestEndpoint
fn clone(&self) -> CreateBatchRequestEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateBatchRequestEndpoint
impl Debug for CreateBatchRequestEndpoint
Source§impl<'de> Deserialize<'de> for CreateBatchRequestEndpoint
impl<'de> Deserialize<'de> for CreateBatchRequestEndpoint
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
Source§impl PartialEq for CreateBatchRequestEndpoint
impl PartialEq for CreateBatchRequestEndpoint
Source§fn eq(&self, other: &CreateBatchRequestEndpoint) -> bool
fn eq(&self, other: &CreateBatchRequestEndpoint) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateBatchRequestEndpoint
impl StructuralPartialEq for CreateBatchRequestEndpoint
Auto Trait Implementations§
impl Freeze for CreateBatchRequestEndpoint
impl RefUnwindSafe for CreateBatchRequestEndpoint
impl Send for CreateBatchRequestEndpoint
impl Sync for CreateBatchRequestEndpoint
impl Unpin for CreateBatchRequestEndpoint
impl UnwindSafe for CreateBatchRequestEndpoint
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