pub enum InputText {
String(String),
ArrayOfStrings(Vec<String>),
ArrayOfTokens(Vec<i64>),
ArrayOfTokenArrays(Vec<Vec<i64>>),
}
Expand description
Defines the input text for the embedding request.
Variants§
String(String)
The string that will be turned into an embedding.
ArrayOfStrings(Vec<String>)
The array of strings that will be turned into an embedding.
ArrayOfTokens(Vec<i64>)
The array of integers that will be turned into an embedding.
ArrayOfTokenArrays(Vec<Vec<i64>>)
The array of arrays containing integers that will be turned into an embedding.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputText
impl<'de> Deserialize<'de> for InputText
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
impl Eq for InputText
impl StructuralPartialEq for InputText
Auto Trait Implementations§
impl Freeze for InputText
impl RefUnwindSafe for InputText
impl Send for InputText
impl Sync for InputText
impl Unpin for InputText
impl UnwindSafe for InputText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.