pub struct ChatCompletionResponse {
pub id: String,
pub object: String,
pub created: u64,
pub model: String,
pub choices: Vec<CompletionChoice>,
pub usage: Usage,
}Expand description
OpenAI-compatible chat completion response.
Fields§
§id: StringThe ID of the completion.
object: StringThe object type.
created: u64The creation timestamp.
model: StringThe model used.
choices: Vec<CompletionChoice>The choices in the response.
usage: UsageUsage statistics.
Trait Implementations§
Source§impl Debug for ChatCompletionResponse
impl Debug for ChatCompletionResponse
Auto Trait Implementations§
impl Freeze for ChatCompletionResponse
impl RefUnwindSafe for ChatCompletionResponse
impl Send for ChatCompletionResponse
impl Sync for ChatCompletionResponse
impl Unpin for ChatCompletionResponse
impl UnwindSafe for ChatCompletionResponse
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