pub struct LLMChunkResponse {
pub id: String,
pub object: String,
pub created: u64,
pub model: String,
pub choices: Vec<ChunkChoice>,
pub system_fingerprint: Option<String>,
}Expand description
Represents a chunk of a streamed LLM response.
Fields§
§id: String§object: String§created: u64§model: String§choices: Vec<ChunkChoice>§system_fingerprint: Option<String>Trait Implementations§
Source§impl Clone for LLMChunkResponse
impl Clone for LLMChunkResponse
Source§fn clone(&self) -> LLMChunkResponse
fn clone(&self) -> LLMChunkResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LLMChunkResponse
impl Debug for LLMChunkResponse
Source§impl<'de> Deserialize<'de> for LLMChunkResponse
impl<'de> Deserialize<'de> for LLMChunkResponse
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 LLMChunkResponse
impl RefUnwindSafe for LLMChunkResponse
impl Send for LLMChunkResponse
impl Sync for LLMChunkResponse
impl Unpin for LLMChunkResponse
impl UnsafeUnpin for LLMChunkResponse
impl UnwindSafe for LLMChunkResponse
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