Skip to main content

reset_stream_parse_cache

Function reset_stream_parse_cache 

Source
pub fn reset_stream_parse_cache()
Expand description

Reset the streaming parse cache. Call when a new assistant turn begins (e.g. streaming_text was cleared) so a shrunken buffer doesn’t keep reusing stale parsed lines.