https://github.com/rafaelpierre/larry-ai
larry.ai: A Batteries Included ChatGPT Frontend Framework & HTTP Proxy
https://github.com/rafaelpierre/larry-ai
chatbot-framework chatbot-ui chatgpt chatgpt-bot chatgpt-python fastapi llms openai openai-api openai-chatgpt python react reactjs
Last synced: 6 days ago
JSON representation
larry.ai: A Batteries Included ChatGPT Frontend Framework & HTTP Proxy
- Host: GitHub
- URL: https://github.com/rafaelpierre/larry-ai
- Owner: rafaelpierre
- License: apache-2.0
- Created: 2023-10-29T14:23:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T13:07:36.000Z (over 2 years ago)
- Last Synced: 2024-01-16T20:00:17.144Z (over 2 years ago)
- Topics: chatbot-framework, chatbot-ui, chatgpt, chatgpt-bot, chatgpt-python, fastapi, llms, openai, openai-api, openai-chatgpt, python, react, reactjs
- Language: Python
- Homepage:
- Size: 51.7 MB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# π¦ larry.ai: A Batteries Included ChatGPT Frontend Framework & HTTP Proxy
       

## πͺ Motivation
* Currently there are some good options to expose your ChatGPT chatbot with a nice user interface, such as Gradio and Streamlit. However, customizing the look and feel of the UI for these frameworks is not that straightforward.
* **larry.ai** was created with two main principles:
* *Ease of use*: just install it, configure your Open AI token, and *voila* - you have a sleak chatbot frontend
* *Flexibility*: want to use **larry.ai** as a simple (internal) proxy and communicate with it via your own frontend? You're welcome to do so via the exposed REST API endpoints.
## π£ Getting Started
### Installation
```bash
pip install larry-ai
```
## πββοΈ Running
* Make sure to properly set the environment variable containing your Open AI Token (`OPENAI_API_TOKEN`), and then:
```bash
larry
INFO:root:Starting Larry server...
INFO: Started server process [2856]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
```
## πΈοΈ Accessing Web UI & REST API
* Just fire up your browser and head to https://localhost:8000.
* The default/root endpoint (`/`) shows the ReactJS frontend, but other endpoints are also available:
* `/generate`: REST API endpoint that communicates with Open AI.
* `/docs`: [FastAPI Swagger UI](https://fastapi.tiangolo.com/features/#automatic-docs) documentation.
## π· Screenshots

### π£οΈ Roadmap
We also have some exciting features in the roadmap, namely:
* Ability to easily change color themes
* Prompt Injection protection
* Caching GPT API calls
* Rate limiting
* Authentication & Authorization
* API Key Management
### π€ Contributing
* Have a cool idea? Feel free to create an issue and submit a PR!
* You can have a look at the current issues [here](https://github.com/rafaelpierre/larry-ai/issues)