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
- Host: GitHub
- URL: https://github.com/Suryansh-Dey/llms-client
- Owner: Suryansh-Dey
- Created: 2025-03-28T14:59:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-11T04:31:15.000Z (2 months ago)
- Last Synced: 2026-02-11T09:48:35.158Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 315 KB
- Stars: 21
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-with-stars - gemini-client-api - client-api) | Library to use Google Gemini API. Automatic context management, schema generation, function calling and more. | 2026-01-30 | (Libraries / Artificial Intelligence)
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