pub struct EmbeddingParameters {
pub model: String,
pub input: 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: String
nput text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed the max input tokens for the model (8191 tokens for text-embedding-ada-002).
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more.
Implementations§
Trait Implementations§
Source§impl Debug for EmbeddingParameters
impl Debug for EmbeddingParameters
Source§impl<'de> Deserialize<'de> for EmbeddingParameters
impl<'de> Deserialize<'de> for EmbeddingParameters
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 EmbeddingParameters
impl RefUnwindSafe for EmbeddingParameters
impl Send for EmbeddingParameters
impl Sync for EmbeddingParameters
impl Unpin for EmbeddingParameters
impl UnwindSafe for EmbeddingParameters
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