You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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