pub type Chat = ChatGeneric<ChatChoice>;Expand description
Non-streaming chat completion response type.
Aliased Type§
pub struct Chat {
pub id: String,
pub choices: Vec<ChatChoice>,
pub created: u64,
pub model: String,
pub system_fingerprint: String,
pub object: String,
pub usage: Option<Usage>,
}Fields§
§id: StringA unique identifier for the chat completion.
choices: Vec<ChatChoice>§created: u64The Unix timestamp (in seconds) of when the chat completion was created.
model: StringThe model used for the chat completion.
system_fingerprint: StringThis fingerprint represents the backend configuration that the model runs with.
object: StringPossible values: [chat.completion]
The object type, which is always chat.completion.
usage: Option<Usage>Usage statistics for the completion request.