pub struct ChatCompletionChunkChoice {
pub index: u32,
pub delta: ChatCompletionDelta,
pub logprobs: Option<Value>,
pub finish_reason: Option<String>,
}
Expand description
A single choice within a streaming chat completion chunk.
Fields§
§index: u32
The index of this choice within the chunk.
delta: ChatCompletionDelta
The delta containing the partial message update.
logprobs: Option<Value>
Optional log probabilities for this choice.
finish_reason: Option<String>
Optional finish reason indicating why generation ended (if applicable).
Trait Implementations§
Source§impl Debug for ChatCompletionChunkChoice
impl Debug for ChatCompletionChunkChoice
Source§impl<'de> Deserialize<'de> for ChatCompletionChunkChoice
impl<'de> Deserialize<'de> for ChatCompletionChunkChoice
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 ChatCompletionChunkChoice
impl RefUnwindSafe for ChatCompletionChunkChoice
impl Send for ChatCompletionChunkChoice
impl Sync for ChatCompletionChunkChoice
impl Unpin for ChatCompletionChunkChoice
impl UnwindSafe for ChatCompletionChunkChoice
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