pub struct ExtendedChatResponse {
pub id: String,
pub object: String,
pub created: u64,
pub model: String,
pub choices: Vec<ExtendedChoice>,
pub usage: UsageInfo,
pub system_fingerprint: Option<String>,
}Expand description
A full OpenAI-compatible chat completion response.
Fields§
§id: StringUnique identifier for this completion.
object: StringObject type: always "chat.completion".
created: u64Unix timestamp of creation.
model: StringThe model that generated this completion.
choices: Vec<ExtendedChoice>One or more completion choices.
usage: UsageInfoToken usage statistics.
system_fingerprint: Option<String>A fingerprint of the model/backend configuration for reproducibility.
Trait Implementations§
Source§impl Debug for ExtendedChatResponse
impl Debug for ExtendedChatResponse
Auto Trait Implementations§
impl Freeze for ExtendedChatResponse
impl RefUnwindSafe for ExtendedChatResponse
impl Send for ExtendedChatResponse
impl Sync for ExtendedChatResponse
impl Unpin for ExtendedChatResponse
impl UnsafeUnpin for ExtendedChatResponse
impl UnwindSafe for ExtendedChatResponse
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more