Expand description
Shared parsing for model outputs that carry <think> reasoning blocks.
Structs§
Constants§
Functions§
- has_
unclosed_ thinking_ block - parse_
reasoning_ response - parse_
reasoning_ response_ for_ prompt - parse_
reasoning_ response_ started_ in_ think - Parse generated text when the rendered prompt already opened
<think>. Some reasoning templates emit only the closing tag in generated text.