split_think_blocks

Function split_think_blocks 

Source
pub fn split_think_blocks(input: &str) -> (String, Option<String>)
Expand description

Split a complete assistant message into (user-facing text, optional thinking) based on <think>...</think> blocks.

This is used by non-streaming callers to keep behavior consistent with streaming.