Adds function calling

This commit is contained in:
2026-01-06 21:15:20 +00:00
parent ecedb1c054
commit 53353eabe0
6 changed files with 174 additions and 27 deletions

View File

@@ -14,8 +14,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.prompt("Why is the sky blue?")
.build();
let mut stream = ollama_client.generate(request).await;
let mut stream = ollama_client.generate(request);
while let Some(response) = stream.next().await {
match response {
Ok(token) => {