pub enum CreateEmbeddingRequest_Input {
Text(String),
TextArray(Vec<String>),
TokenArray(Vec<i64>),
TokenArrayArray(Vec<Vec<i64>>),
}
Expand description
Input text to embed, encoded as a string or array of tokens.
Variants§
Text(String)
The string that will be turned into an embedding.
TextArray(Vec<String>)
The array of strings that will be turned into an embedding.
TokenArray(Vec<i64>)
The array of integers that will be turned into an embedding.
TokenArrayArray(Vec<Vec<i64>>)
The array of arrays containing integers that will be turned into an embedding.
Trait Implementations§
Source§impl Clone for CreateEmbeddingRequest_Input
impl Clone for CreateEmbeddingRequest_Input
Source§fn clone(&self) -> CreateEmbeddingRequest_Input
fn clone(&self) -> CreateEmbeddingRequest_Input
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 moreAuto Trait Implementations§
impl Freeze for CreateEmbeddingRequest_Input
impl RefUnwindSafe for CreateEmbeddingRequest_Input
impl Send for CreateEmbeddingRequest_Input
impl Sync for CreateEmbeddingRequest_Input
impl Unpin for CreateEmbeddingRequest_Input
impl UnwindSafe for CreateEmbeddingRequest_Input
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