pub struct ChatResponseStream {
pub id: Option<String>,
pub choices: Vec<ChatChoiceStream>,
pub created: Option<u32>,
pub model: Option<String>,
pub service_tier: Option<String>,
pub system_fingerprint: Option<String>,
pub object: Option<String>,
pub usage: Option<CompletionUsageStream>,
}
Fields§
§id: Option<String>
A unique identifier for the chat completion. Each chunk has the same ID.
choices: Vec<ChatChoiceStream>
A list of chat completion choices. Can contain more than one elements if n is greater than 1. Can also be empty for the last chunk if you set stream_options: {“include_usage”: true}.
created: Option<u32>
The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp.
model: Option<String>
The model to generate the completion.
service_tier: Option<String>
The service tier used for processing the request.
system_fingerprint: Option<String>
This fingerprint represents the backend configuration that the model runs with.
Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
object: Option<String>
The object type, which is always chat.completion.chunk
.
usage: Option<CompletionUsageStream>
Usage statistics for the completion request.
Trait Implementations§
Source§impl Clone for ChatResponseStream
impl Clone for ChatResponseStream
Source§fn clone(&self) -> ChatResponseStream
fn clone(&self) -> ChatResponseStream
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more