Fixed multiline handling, and did a cargo fmt.

This commit is contained in:
Micheal Smith
2025-10-31 05:34:34 -05:00
parent 138df60661
commit 9719d9203c
4 changed files with 16 additions and 17 deletions

View File

@@ -70,11 +70,6 @@ impl LLMHandle {
while let Some(Ok(stream_event)) = stream.next().await {
if let ChatStreamEvent::Chunk(StreamChunk { content }) = stream_event {
text.push_str(&content);
} else if let ChatStreamEvent::End(end) = stream_event {
let texts = end.captured_texts().unwrap();
for text in texts.into_iter() {
info!("An answer: {}", text);
}
}
}