pub struct CreateChatCompletionResponse {
pub id: String,
pub choices: Vec<CreateChatCompletionResponse_Choices>,
pub created: i64,
pub model: String,
pub service_tier: Option<ServiceTier>,
pub system_fingerprint: Option<String>,
pub object: String,
pub usage: Option<CompletionUsage>,
}
Expand description
Represents a chat completion response returned by model, based on the provided input.
Fields§
§id: String
A unique identifier for the chat completion.
choices: Vec<CreateChatCompletionResponse_Choices>
A list of chat completion choices.
created: i64
The Unix timestamp (in seconds) of when the chat completion was created.
model: String
The model used for the chat completion.
service_tier: Option<ServiceTier>
§system_fingerprint: Option<String>
This fingerprint represents the backend configuration that the model runs with.
object: String
The object type, which is always chat.completion
.
usage: Option<CompletionUsage>
Trait Implementations§
Source§impl Clone for CreateChatCompletionResponse
impl Clone for CreateChatCompletionResponse
Source§fn clone(&self) -> CreateChatCompletionResponse
fn clone(&self) -> CreateChatCompletionResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateChatCompletionResponse
impl Debug for CreateChatCompletionResponse
Source§impl Default for CreateChatCompletionResponse
impl Default for CreateChatCompletionResponse
Source§fn default() -> CreateChatCompletionResponse
fn default() -> CreateChatCompletionResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateChatCompletionResponse
impl RefUnwindSafe for CreateChatCompletionResponse
impl Send for CreateChatCompletionResponse
impl Sync for CreateChatCompletionResponse
impl Unpin for CreateChatCompletionResponse
impl UnwindSafe for CreateChatCompletionResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more