From ab91154d35f0889e48ccbfed4a02ed175e0ec22a Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Sat, 9 Mar 2024 11:41:39 +0100 Subject: [PATCH] docs(readme): update examples --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f55332..38bfbfb 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ async fn main() { let stream_result = client .chat_stream(model, messages, Some(options)) .await - .expect("Failed to create stream."); + .unwrap(); stream_result .for_each(|chunk_result| async { match chunk_result { @@ -197,7 +197,6 @@ async fn main() { } }) .await; - print!("\n") // To persist the last chunk output. } ```