Skip to main content

preprocess

Function preprocess 

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

Full preprocessing pipeline applied to every LLM response.

Strips <think> and <thinking> blocks, then trims whitespace. Every parser module calls this as step 1.