Struct openai_api_rust::apis::embeddings::EmbeddingsBody
source · 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