Gemini Bridge
Gemini Bridge is a Rust crate designed to interact with the Gemini API. This crate aims to provide a seamless and efficient way to communicate with Gemini API.
Features
- Easy-to-use interface for interacting with the Gemini API
- Asynchronous support for non-blocking operations
- Comprehensive error handling
Installation
Add gemini_bridge to your Cargo.toml:
[]
= "0.1.4"
# example version
Usage
Text Generation
extern crate gemini_rs;
async
Streaming
You can also use the generate_content_stream method to generate a conversation between the user and the model. The role field in the Content struct is used to determine the speaker of the text. The role field can be set to user or model.
let res = gen
.generate_content_stream
.await;
Not tested yet with other models.
TODO
- Implement Content Generation Method
- Implement Conversation
- Implement Embeddings
- Add examples and documentation
- Write tests