#gemini #google-api #google #api #api-bindings #generate #rust

gemini_client_rust

A Rust client for interacting with Google's Gemini API. Tailored only for a single type of query at this point

5 releases

0.1.4 Nov 12, 2024
0.1.3 Nov 12, 2024
0.1.2 Nov 12, 2024
0.1.1 Nov 12, 2024
0.1.0 Nov 12, 2024

#1565 in Web programming

Download history 406/week @ 2024-11-11

406 downloads per month

MIT license

8KB
111 lines

Gemini Client Rust

Gemini Client Rust is a Rust library for interacting with Google's Gemini API. This library provides a simple way to send prompts to the API and receive responses, making it easy to integrate generative language capabilities into your Rust applications. At this point, it is only built for a single purpose: Receive a prompt and a list and find the three closer words from the list that represent the prompt. This can be modified for similar tasks, but is not yet generalized.

Features

  • Send prompts to Google's Gemini API
  • Parse responses and extract related content
  • Easy-to-use function for generating related words based on user input

Installation

Add the following to your Cargo.toml:

[dependencies]
gemini_client_rust = "0.1.4"

Dependencies

~8–11MB
~210K SLoC