Struct openai_api_rust::apis::completions::Completion
source · pub struct Completion {
pub id: Option<String>,
pub object: Option<String>,
pub created: u64,
pub model: Option<String>,
pub choices: Vec<Choice>,
pub usage: Usage,
}
Expand description
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
Fields§
§id: Option<String>
§object: Option<String>
§created: u64
§model: Option<String>
§choices: Vec<Choice>
§usage: Usage
Trait Implementations§
source§impl Debug for Completion
impl Debug for Completion
source§impl<'de> Deserialize<'de> for Completion
impl<'de> Deserialize<'de> for Completion
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