#google #llm #gemini #async-api #genai

google-genai

Bindigns for the Google AI Platform API

2 releases

0.0.2 Dec 24, 2024
0.0.1 Dec 21, 2024

#245 in Machine learning

Download history 274/week @ 2024-12-20 15/week @ 2024-12-27

289 downloads per month
Used in libtenx

MIT license

31KB
698 lines

genai-rs

A Rust client for the Google Generative Language API (PaLM2/Gemini).

Features

  • Stream and non-stream content generation
  • Full type safety with Rust datatypes
  • Simple async API

See the examples directory for usage examples.

This crate currently supports just enough fo the API to be used in tenx.

The datatypes in this crate is a transliteration of the Google Go SDK into Rust datatypes.

Dependencies

~9–21MB
~287K SLoC