Fixed multiline handling, and did a cargo fmt.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user