An open API service indexing awesome lists of open source software.

https://github.com/Suryansh-Dey/llms-client

Rust library for Gemini, chatGPT, etc. with automatic context management
https://github.com/Suryansh-Dey/llms-client

Last synced: 2 months ago
JSON representation

Rust library for Gemini, chatGPT, etc. with automatic context management

Awesome Lists containing this project

README

          

# Gemini
## Installation
```bash
cargo add gemini-client-api

```
## Overview
A Rust library to use Google's Gemini API with macro super powers! It is extremely flexible and modular to integrate with any framework.
For example, since Actix supports stream of `Result` for response streaming, you can get it directly instead of making a wrapper stream around a response stream of futures, which is a pain.

### Features
- Automatic context management
- Automatic function calling. Trust me!
- Automatic JSON schema generation
- Inbuilt markdown to parts parser enables AI to see markdown images or files, even if they are from your device storage!
- Vision to see images
- Code execution by Gemini
- File reading like PDF or any document, even audio files like MP3
- Function call support
- Thinking and Safety setting
- Context Caching
- Supports Session management in WASM environment with `default-features = false`

# TODO
1. Do the same for OpenAI