#generative-ai #ai #google #gemini #generative #ai-api #client

google-generative-ai-rs

An unofficial rust-based client library to interact with the Google Gemini generative AI API

11 releases

0.2.4 Mar 18, 2024
0.2.3 Feb 11, 2024
0.1.7 Jan 18, 2024
0.1.4 Dec 30, 2023

#148 in Machine learning

Download history 42/week @ 2023-12-29 2/week @ 2024-01-05 7/week @ 2024-01-12 3/week @ 2024-01-19 3/week @ 2024-02-09 40/week @ 2024-02-16 51/week @ 2024-02-23 43/week @ 2024-03-01 24/week @ 2024-03-08 137/week @ 2024-03-15 17/week @ 2024-03-22 83/week @ 2024-03-29 26/week @ 2024-04-05

266 downloads per month

MIT license

46KB
876 lines

Google Generative AI API client (unofficial)

Rust Check

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.

The initial focus will be on the newer Gemini models, but the more stable and mature models will hopefully also be supported soon.

⚠️ Warning: initial working out; it will change very frequently. ⚠️

Usage

Start point, gain familiarity with Google's Gemini generative AI.

See examples and follow the in-comment instructions. The code is (hopefully) easy and readable.

Contributing

Yes, please!! Create a fork and branch, make your contribution, and raise a PR.

Please see contributing for the rules; they are standard though.

Work status

I do my best to release working code.

Status today is: "Happy path for both public and Vertex AI endpoints work for Gemini, but some things may be fragile."

Outline tasks

Dependencies

~19–35MB
~672K SLoC