From b63d26f0cdcffcc0ab02f904f5c6ba9de5353b28 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Sat, 1 Nov 2025 16:37:35 +0100 Subject: [PATCH] **feat:** update default model to `qwen3:8b` and simplify chat streaming loop with proper error handling and trailing newline. --- crates/cli/src/main.rs | 3 ++- crates/config/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 27f7a30..206b558 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -52,7 +52,7 @@ async fn main() -> Result<()> { }]; let mut stream = client.chat_stream(&msgs, &opts).await?; - while let Ok(Some(chunk)) = stream.try_next().await { + while let Some(chunk) = stream.try_next().await? { if let Some(m) = chunk.message { if let Some(c) = m.content { print!("{c}"); @@ -63,5 +63,6 @@ async fn main() -> Result<()> { break; } } + println!(); // Newline after response Ok(()) } diff --git a/crates/config/src/lib.rs b/crates/config/src/lib.rs index 80252bd..299d03e 100644 --- a/crates/config/src/lib.rs +++ b/crates/config/src/lib.rs @@ -20,7 +20,7 @@ fn default_ollama_url() -> String { "http://localhost:11434".into() } fn default_model() -> String { - "qwen2.5".into() + "qwen3:8b".into() } fn default_mode() -> String { "plan".into()