pub struct EmbeddingsBody {
pub model: String,
pub input: Vec<String>,
pub user: Option<String>,
}
Fields§
§model: String
ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
input: Vec<String>
Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Trait Implementations§
Source§impl Debug for EmbeddingsBody
impl Debug for EmbeddingsBody
Source§impl<'de> Deserialize<'de> for EmbeddingsBody
impl<'de> Deserialize<'de> for EmbeddingsBody
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 EmbeddingsBody
impl RefUnwindSafe for EmbeddingsBody
impl Send for EmbeddingsBody
impl Sync for EmbeddingsBody
impl Unpin for EmbeddingsBody
impl UnwindSafe for EmbeddingsBody
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