GithubHelp home page GithubHelp logo

rafaelpierre / larry-ai Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 52.9 MB

larry.ai: A Batteries Included ChatGPT Frontend Framework & HTTP Proxy

License: Apache License 2.0

Makefile 1.32% Python 46.25% HTML 3.73% JavaScript 28.39% CSS 16.90% Dockerfile 3.40%
chatbot-framework chatbot-ui chatgpt chatgpt-bot chatgpt-python fastapi llms openai openai-api openai-chatgpt

larry-ai's Introduction

🐦 larry.ai: A Batteries Included ChatGPT Frontend Framework & HTTP Proxy

version ChatGPT React python FastAPI ruff build coverage


πŸ’ͺ 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

pip install larry-ai

πŸƒβ€β™‚οΈ Running

  • Make sure to properly set the environment variable containing your Open AI Token (OPENAI_API_TOKEN), and then:
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 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

larry-ai's People

Contributors

rafaelpierre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nattcodes

larry-ai's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.