pub struct OpenAiStreamOptions {
pub include_usage: bool,
pub include_reasoning: bool,
}Expand description
Options for streaming OpenAI-compatible output.
Fields§
§include_usage: boolWhether to include usage in the final chunk
(corresponds to stream_options.include_usage).
include_reasoning: boolWhether to emit reasoning_content deltas (default true).
Trait Implementations§
Source§impl Clone for OpenAiStreamOptions
impl Clone for OpenAiStreamOptions
Source§impl Debug for OpenAiStreamOptions
impl Debug for OpenAiStreamOptions
Auto Trait Implementations§
impl Freeze for OpenAiStreamOptions
impl RefUnwindSafe for OpenAiStreamOptions
impl Send for OpenAiStreamOptions
impl Sync for OpenAiStreamOptions
impl Unpin for OpenAiStreamOptions
impl UnsafeUnpin for OpenAiStreamOptions
impl UnwindSafe for OpenAiStreamOptions
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