pub struct ThinkStripper { /* private fields */ }Expand description
Streaming filter that strips <think>…</think> reasoning blocks emitted by
reasoning models (minimax, deepseek-r1, qwq…) so surfaces show the answer,
not the chain-of-thought. Handles tags split across streamed deltas.
Implementations§
Trait Implementations§
Source§impl Default for ThinkStripper
impl Default for ThinkStripper
Source§fn default() -> ThinkStripper
fn default() -> ThinkStripper
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThinkStripper
impl RefUnwindSafe for ThinkStripper
impl Send for ThinkStripper
impl Sync for ThinkStripper
impl Unpin for ThinkStripper
impl UnsafeUnpin for ThinkStripper
impl UnwindSafe for ThinkStripper
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