ChatCompletion

Type Alias ChatCompletion 

Source
pub type ChatCompletion = ChatCompletionGeneric<ChatCompletionChoice>;
Expand description

A full chat completion.

Aliased Type§

pub struct ChatCompletion {
    pub id: String,
    pub object: String,
    pub created: u64,
    pub model: String,
    pub choices: Vec<ChatCompletionChoice>,
    pub usage: Option<Usage>,
}

Fields§

§id: String§object: String§created: u64§model: String§choices: Vec<ChatCompletionChoice>§usage: Option<Usage>

Implementations§

Trait Implementations§

Source§

impl From<ChatCompletionGeneric<ChatCompletionChoiceDelta>> for ChatCompletion

Source§

fn from(delta: ChatCompletionDelta) -> Self

Converts to this type from the input type.