Unifies streaming code

This commit is contained in:
2025-12-28 12:50:47 +00:00
parent ac480881e4
commit 1c431715c6
3 changed files with 26 additions and 75 deletions

View File

@@ -21,6 +21,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
Ok(token) => {
print!("{}", token.response);
std::io::stdout().flush()?;
if token.done {
break;
}
}
Err(e) => println!("Error: {}", e),
}