pub type SingleChatResponse = ChatResponse<ChatChoice>;Expand description
A non-streaming chat response
Aliased Type§
pub struct SingleChatResponse {
pub created: u64,
pub model: Option<String>,
pub system_fingerprint: Option<String>,
pub choices: Vec<ChatChoice>,
pub usage: Option<UsageResponse>,
}Fields§
§created: u64Unix timestamp in seconds
model: Option<String>The model that was used
system_fingerprint: Option<String>A fingerprint for the system prompt
choices: Vec<ChatChoice>The chat choices
usage: Option<UsageResponse>Token usage information