Skip to main content

strip_thinking

Function strip_thinking 

Source
pub fn strip_thinking(text: &str) -> String
Expand description

Exposed for testing. Strip <think>...</think> and <thought>...</thought> blocks from model output. Handles multiline content and multiple blocks.