I copy paste your sample code:
use ask_gemini::Gemini;
#[tokio::main]
async fn main() {
let gemini = Gemini::new(Some("your_api_key_here"), None);
let prompt = "Hello, world!";
match gemini.ask(prompt).await {
Ok(response) => println!("Response: {:?}", response),
Err(e) => eprintln!("Error: {}", e),
}
into a new cargo project with just ask_gemini and tokio. It throw me that error:
Error: Serialization error: missing field `candidates` at line 17 column 1