12 releases (1 stable)
1.0.0 | Feb 28, 2025 |
---|---|
0.4.3 | Feb 25, 2025 |
0.4.2 | Nov 15, 2024 |
0.3.2 | Nov 5, 2024 |
0.1.0 |
|
#1571 in Web programming
366 downloads per month
23KB
643 lines
STILL A WIP
A library to use Google Gemini's API directly in Rust! Made because the current options weren't very capable and didn't support 100% of the official API.
Example
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!(
"{}",
gemini_rs::chat("gemini-1.5-flash")
.send_message("Explain how AI works")
.await?
);
Ok(())
}
Dependencies
~6–18MB
~230K SLoC