Skip to content

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

License

Notifications You must be signed in to change notification settings

qrnch-jan/google-generative-ai-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

Potentially Breaking Changes

Version 0.3.0 may lead to breaking changes. This version adds in some beta features and I have now added a feature flag to enable these.

google-generative-ai-rs = { version = "0.3.0", features = ["beta"] }

Using the beta feature will enable the following:

  • gemini-1.5-pro-latest
  • system instructions
  • json_mode

I do my best to release working code.

Status today is: "Happy path for both public and Vertex AI endpoints work for Gemini."

Outline tasks

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%