pub struct ChatCompletionStreamResponseDelta {
pub content: Option<ChatCompletionMessageContent>,
pub function_call: Option<ChatCompletionStreamResponseDeltaFunctionCall>,
pub tool_calls: Option<Vec<ChatCompletionMessageToolCallChunk>>,
pub role: Option<Role>,
pub refusal: Option<String>,
pub reasoning_content: Option<String>,
}Expand description
Streaming delta with reasoning content.
Extends upstream ChatCompletionStreamResponseDelta with:
content:Option<ChatCompletionMessageContent>(multimodal) instead ofOption<String>reasoning_content: streaming reasoning tokens (DeepSeek-R1, QwQ)
Fields§
§content: Option<ChatCompletionMessageContent>§function_call: Option<ChatCompletionStreamResponseDeltaFunctionCall>§tool_calls: Option<Vec<ChatCompletionMessageToolCallChunk>>§role: Option<Role>§refusal: Option<String>§reasoning_content: Option<String>Streaming reasoning content (DeepSeek-R1, QwQ models).
Trait Implementations§
Source§impl Clone for ChatCompletionStreamResponseDelta
impl Clone for ChatCompletionStreamResponseDelta
Source§fn clone(&self) -> ChatCompletionStreamResponseDelta
fn clone(&self) -> ChatCompletionStreamResponseDelta
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<'de> Deserialize<'de> for ChatCompletionStreamResponseDelta
impl<'de> Deserialize<'de> for ChatCompletionStreamResponseDelta
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
impl StructuralPartialEq for ChatCompletionStreamResponseDelta
Auto Trait Implementations§
impl Freeze for ChatCompletionStreamResponseDelta
impl RefUnwindSafe for ChatCompletionStreamResponseDelta
impl Send for ChatCompletionStreamResponseDelta
impl Sync for ChatCompletionStreamResponseDelta
impl Unpin for ChatCompletionStreamResponseDelta
impl UnsafeUnpin for ChatCompletionStreamResponseDelta
impl UnwindSafe for ChatCompletionStreamResponseDelta
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