pub struct CreateChatCompletionResponse {
pub choices: Vec<CreateChatCompletionResponseChoices>,
pub created: i32,
pub id: String,
pub model: String,
pub object: String,
pub service_tier: Option<ServiceTier>,
pub system_fingerprint: Option<String>,
pub usage: Option<CompletionUsage>,
}
Fields§
§choices: Vec<CreateChatCompletionResponseChoices>
A list of chat completion choices. Can be more than one if n
is greater than 1.
created: i32
The Unix timestamp (in seconds) of when the chat completion was created.
id: String
A unique identifier for the chat completion.
model: String
The model used for the chat completion.
object: String
The object type, which is always chat.completion
.
service_tier: Option<ServiceTier>
§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.
usage: Option<CompletionUsage>
Trait Implementations§
Source§impl Debug for CreateChatCompletionResponse
impl Debug for CreateChatCompletionResponse
Source§impl<'de> Deserialize<'de> for CreateChatCompletionResponse
impl<'de> Deserialize<'de> for CreateChatCompletionResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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