Skip to main content

append_assistant_text_part

Function append_assistant_text_part 

Source
pub fn append_assistant_text_part(out: &mut String, next: &str)
Expand description

Append a streamed text part to the running assistant text, inserting the right number of blank lines so consecutive parts don’t glue together.