Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avaterclasher/kind-chatbot-backend
https://github.com/avaterclasher/kind-chatbot-backend
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/avaterclasher/kind-chatbot-backend
- Owner: AvaterClasher
- License: mit
- Created: 2024-02-17T08:58:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T16:20:15.000Z (10 months ago)
- Last Synced: 2024-03-06T20:52:07.550Z (10 months ago)
- Language: Rust
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Kind Chatbot
An open-source AI chatbot server built with Rocket, Gemini API, and Rust 🦀.
Features.
Running locally.
API.
Author.## The Server is hosted on Shuttle at
`https://kindbot-backend.shuttleapp.rs`
> Shuttle server's are hosted in London, UK. And due to some weird UK law the gemini api's is currently unavailable in the UK.
> So the Server currently returns **Cant process request**.## Technologies Used
- [Rocket 🚀](https://rocket.rs/) as the server framework
- [Gemini API](https://ai.google.dev/) as the LLM API
- Written in [Rust 🦀](https://www.rust-lang.org/)## Running locally
You will need to use the environment variables defined in [`.env.example`](.env.example) to run Rocket server. It's recommended you just copy the variable to a `.env` file.
You can get the Gemini API Key [here](https://aistudio.google.com/app/apikey).
> Note: You should not commit your `.env` file or it will expose secrets that will allow others to control access to your various Gemini and authentication provider accounts.
- Install Rust:
- For Linux : `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
- For Windows : [See this link](https://forge.rust-lang.org/infra/other-installation-methods.html#other-ways-to-install-rustup)
- Set the Current Rust toolchain to nighly to build the server: `rustup default nightly`
- Then Just Run the Server using: `cargo run`Your server should now be running on [localhost:8000/chat](http://localhost:8000/chat).
## API
REST API :
```
curl -X POST -H "Content-Type: application/json" -d '{
"user_message": "{PROMPT_HERE}"
}' https://localhost:8000/chat
```## Authors
Rustfully made by 🦀
- Soumyadip Moni ([@avater_clasher](https://github.com/AvaterClasher))