TUI chatbot in Rust w/ Gemini
Find a file
2024-05-13 20:19:18 +03:00
.github/workflows swapped tui for ratatui implementing OpenAI 2024-05-13 20:17:30 +03:00
archive 🚫 Response not working Request working UI working (barely) 2024-05-12 16:22:45 +03:00
src swapped tui for ratatui implementing OpenAI 2024-05-13 20:17:30 +03:00
.env.example Both Request and Response working; 📑 Added some docs 2024-05-12 18:20:36 +03:00
.gitignore 🩹 tui-rs to ratatui 🆕 travis ci, for whatever 2024-05-13 00:04:00 +03:00
.travis.yml 🩹 tui-rs to ratatui 🆕 travis ci, for whatever 2024-05-13 00:04:00 +03:00
Cargo.toml 🩹 tui-rs to ratatui 🆕 travis ci, for whatever 2024-05-13 00:04:00 +03:00
config.toml 🚫 Response not working Request working UI working (barely) 2024-05-12 16:22:45 +03:00
LICENSE.md Added LICENSE and README 2024-05-12 18:52:58 +03:00
README.md swapped tui for ratatui implementing OpenAI 2024-05-13 20:17:30 +03:00
rustfmt.toml 🚫 Response not working Request working UI working (barely) 2024-05-12 16:22:45 +03:00
TODO.md 🩹 tui-rs to ratatui 🆕 travis ci, for whatever 2024-05-13 00:04:00 +03:00

😐 UNOPENED AI

Rust Gemini OpenAi

A terminal-based chatbot written in Rust using Gemini & OpenAI, and the ratatui crate for the front-end,

Requires:

  1. Rust 2021 or greater https://rustup.rs/ or run curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Gemini Pro API key https://aistudio.google.com/app/apikey
  3. OpenAI API key To start:
git clone https://github.com/waynemaranga/unopened_ai.git
cd unopened_ai
cp -v .env.example .env

Add your Google API Key to the .env file

...then build the project to install dependencies:

cargo build -j 4 # install dependencies
cargo run # run the app

©️ 2024, Wayne Maranga

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.