pub struct CreateChatCompletionChunk {
pub id: String,
pub object: String,
pub created: u64,
pub model: String,
pub choices: Vec<ChatCompletionChunkChoice>,
}Expand description
A streaming chat completion chunk returned by the API.
Fields§
§id: StringThe unique identifier for this chat completion chunk.
object: StringThe type of the returned object (e.g., “chat.completion.chunk”).
created: u64The creation time (in epoch seconds) for this chunk.
model: StringThe model used to generate the completion.
choices: Vec<ChatCompletionChunkChoice>A list of choices contained in this chunk.
Trait Implementations§
Source§impl Debug for CreateChatCompletionChunk
impl Debug for CreateChatCompletionChunk
Source§impl<'de> Deserialize<'de> for CreateChatCompletionChunk
impl<'de> Deserialize<'de> for CreateChatCompletionChunk
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 CreateChatCompletionChunk
impl RefUnwindSafe for CreateChatCompletionChunk
impl Send for CreateChatCompletionChunk
impl Sync for CreateChatCompletionChunk
impl Unpin for CreateChatCompletionChunk
impl UnwindSafe for CreateChatCompletionChunk
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