diff --git a/rig-core/examples/anthropic_streaming.rs b/rig-core/examples/anthropic_streaming.rs index b61ef96..fa0c66f 100644 --- a/rig-core/examples/anthropic_streaming.rs +++ b/rig-core/examples/anthropic_streaming.rs @@ -23,7 +23,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.usage.output_tokens); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/anthropic_streaming_with_tools.rs b/rig-core/examples/anthropic_streaming_with_tools.rs index 9dc53b4..5914d10 100644 --- a/rig-core/examples/anthropic_streaming_with_tools.rs +++ b/rig-core/examples/anthropic_streaming_with_tools.rs @@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.usage.output_tokens); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/cohere_streaming.rs b/rig-core/examples/cohere_streaming.rs index bf1f16c..d6fb6eb 100644 --- a/rig-core/examples/cohere_streaming.rs +++ b/rig-core/examples/cohere_streaming.rs @@ -21,7 +21,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.usage); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/cohere_streaming_with_tools.rs b/rig-core/examples/cohere_streaming_with_tools.rs index c4d5961..53012d1 100644 --- a/rig-core/examples/cohere_streaming_with_tools.rs +++ b/rig-core/examples/cohere_streaming_with_tools.rs @@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.usage); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/gemini_streaming.rs b/rig-core/examples/gemini_streaming.rs index fc22907..6fa34ae 100644 --- a/rig-core/examples/gemini_streaming.rs +++ b/rig-core/examples/gemini_streaming.rs @@ -26,6 +26,6 @@ async fn main() -> Result<(), anyhow::Error> { ); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/gemini_streaming_with_tools.rs b/rig-core/examples/gemini_streaming_with_tools.rs index 8c9bffe..ffdd135 100644 --- a/rig-core/examples/gemini_streaming_with_tools.rs +++ b/rig-core/examples/gemini_streaming_with_tools.rs @@ -115,7 +115,7 @@ async fn main() -> Result<(), anyhow::Error> { ); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/ollama_streaming.rs b/rig-core/examples/ollama_streaming.rs index 1bc1e33..9c745f5 100644 --- a/rig-core/examples/ollama_streaming.rs +++ b/rig-core/examples/ollama_streaming.rs @@ -21,6 +21,6 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.eval_count); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/ollama_streaming_with_tools.rs b/rig-core/examples/ollama_streaming_with_tools.rs index 37b5854..d61f16e 100644 --- a/rig-core/examples/ollama_streaming_with_tools.rs +++ b/rig-core/examples/ollama_streaming_with_tools.rs @@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?} tokens", response.eval_count); }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/openai_streaming.rs b/rig-core/examples/openai_streaming.rs index 40ec569..87772da 100644 --- a/rig-core/examples/openai_streaming.rs +++ b/rig-core/examples/openai_streaming.rs @@ -21,7 +21,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?}", response.usage) }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) } diff --git a/rig-core/examples/openai_streaming_with_tools.rs b/rig-core/examples/openai_streaming_with_tools.rs index b83a1fa..6d57855 100644 --- a/rig-core/examples/openai_streaming_with_tools.rs +++ b/rig-core/examples/openai_streaming_with_tools.rs @@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> { println!("Usage: {:?}", response.usage) }; - println!("Message: {:?}", stream.message); + println!("Message: {:?}", stream.choice); Ok(()) }