pub struct Embedding {
pub model: Model,
pub input: String,
pub user: Option<String>,
}
Expand description
Given a prompt and an instruction, the model will return an edited version of the prompt.
Fields§
§model: Model
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
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. Learn more.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Embedding
impl<'de> Deserialize<'de> for Embedding
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