Skip to main content

split_channels

Function split_channels 

Source
pub fn split_channels(full: &str) -> (String, String)
Expand description

Split cumulative model output into (reasoning, content).

Reasoning = text before <channel|> (markers stripped). Content = text after <channel|> (markers stripped). If the marker is absent, reasoning = full stripped text, content = "".