| Crates.io | google-generative-ai-rs |
| lib.rs | google-generative-ai-rs |
| version | 0.3.4 |
| created_at | 2023-12-29 02:28:32.845801+00 |
| updated_at | 2024-12-23 01:19:47.804422+00 |
| description | An unofficial rust-based client library to interact with the Google Gemini generative AI API |
| homepage | |
| repository | https://github.com/avastmick/google-generative-ai-rs |
| max_upload_size | |
| id | 1082910 |
| size | 120,080 |
An unofficial rust-based client library to interact with the Google generative AI API.
The goal is to emulate the Google AI Python SDK but in Rust.
Start point, gain familiarity with Google's Gemini generative AI.
For the public Gemini endpoint, see the Gemini API Overview docs
Similarly, for the Vertex AI endpoint, see the Vertex AI Gemini API docs
See examples and follow the in-comment instructions. The code is (hopefully) easy and readable.
Yes, please!! Create a fork and branch, make your contribution, and raise a PR.
Please see contributing for the rules; they are standard though.
google-generative-ai-rs = { version = "0.3.4", features = ["beta"] }
Using the beta feature will enable the following:
gemini-1.5-pro-latestgemini-1.0-progemini-1.5-pro-latest")gemini-1.5-flash")"gemini-1.5-flash-8b")gemini-2.0-flash-exp")Model::Custom(name)json_modeNote: gemini-1.0-pro is deprecated and will be unavailable from 15th February 2025.
I do my best to release working code.
Status today is: "Happy path for both public and Vertex AI endpoints work for Gemini."