Closed xmlandroid closed 3 months ago
Thanks, I'll investigate when I get time over the weekend.
Hi, @xmlandroid, I cannot replicate this in any way. I always see all of the response from the API.
So I can help you further, can you give more techical details on your usage? Please include:
I find the problem is when I use serde_json::from_value convert the Value to GeminiResponse the first chunk will return Err not Ok
other chunk is ok,just the first Gemini return struct is different ,convert the value to GeminiResponse get Err
By the way, do you have any examples of conversations with pictures?
use the code: GeminiClient::for_each_async(json_stream, move |response: GeminiResponse| async move { println!( "{}", response.candidates[0].content.parts[0] .text .clone() .unwrap() .as_str() ); }) output miss first text:
this is the aistudio output:
try a lot of example ,the problem continue