GithubHelp home page GithubHelp logo

yasulab / hostedgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allyourbot/hostedgpt

0.0 0.0 0.0 12.82 MB

License: MIT License

Shell 0.43% JavaScript 8.81% Ruby 66.21% CSS 2.83% HTML 21.31% Dockerfile 0.42%

hostedgpt's Introduction

HostedGPT

HostedGPT is a free, open-source alternative to ChatGPT. You can run it on your own computer or any server that supports Ruby on Rails, just bring your own OpenAI API key. All the core functionality of ChatGPT is already working (e.g. GPT-3.5 and GPT-4, starting new converstions, streaming responses, asking about attached images, etc). The main thing missing is the mobile app but that's coming soon.

This project is actively looking for contributors to help make it great. The goal is for every feature that exists in ChatGPT to exist in this app, then we can start adding lots of new features and extensions beyond what ChatGPT supports.

Some favorite features of HostedGPT

  • Enjoy chat history, but without your private conversations being used for training!

    Did you know that all your private, personal past conversations in the left sidebar are allowed to be used for OpenAI training? Disclosed in this OpenAI article. HostedGPT excludes your history from OpenAI training.

  • Don't commit yourself to $20 per month when you may not use ChatGPT a lot. You only pay as much as you use!

  • You will never hit the 'You've reached the current usage cap for GPT-4'. You pay per mesage based on the API rates so you can keep using it as much as you want.

Watch a demo of the app

Table of Contents

Set Up Live App

You can deploy a full version of HostedGPT to the hosting service, Render, for free. This free app works for 90 days and then the database will stop working. You will need to upgrade to a paid version of the database which is $7 / month. Alternatively, you can also run it off your local computer. Jump down to the Developer Instructions if you want to run it locally.

  1. Click Fork > Create New Fork at the top of this repository
  2. Create an account on Render.com and login. If you are new to Render, you may be prompted to add a credit card to your account. However, you will be on their free plan by default unless you choose to upgrade.
  3. View your newly created fork within github.com and click the button below:

Deploy to Render

  1. In Blueprint Name, type anything such as "hostedgpt-"
  2. Click Apply
  3. Wait for the hostedgpt database and web service to be deployed. The first deploy takes a good 5 minutes so be patient. After they are all deployed, click Dashboard at the top of the Render screen. Or if an error occurs, skip to Troubleshooting Render below.
  4. You should see two "Service Names" called "hostedgpt-..." (the name you picked), click the one that is of type Web Service
  5. On the details screen, click the URL that looks something like hostedgpt-XXX.onrender.com

NOTE: After 15 minutes of not using the app your Render server will pause. Next time you visit the first request will auto-resume the server, but this resume is slow. If this annoys you, upgrade Render for $7 per month:

  1. Go to your Render Dashboard
  2. Click "HostedGPT" or whatever you named your Web Service
  3. Click "Upgrade" and select $7 per month

Troubleshooting Render

  1. If you encountered an error while waiting for the services to be deployed on Render, click Dashboard at the top of the Render screen and click the Service that failed.
  2. It should take you to the Events section and the top event should explain the error. It will probably contain a link to click to the deploy logs
  3. Scroll back up through the logs and find any instances of errors. Open a new Issue for us and share details.
  4. When you are ready to try Render again, it's best to do the following:
  5. First, ensure your repo is caught up. Open your fork in github, click the Sync Fork button so that any bug fixes are pulled in.
  6. Second, in Render navigate to the Dashboard, Bluebrint, and Env Groups and delete any details associated with hostedgpt
  7. Now you can go back to your repo and click Deploy to Render

Contribute as a Developer

We welcome contributors! After you get your developoment environment setup, review the list of Issues. We organize the issues into Milestones and are currently working on v0.6. View 0.6 Milestone. Look for any issues tagged with Good first issue and add a comment so we know you're working on it.

Setting up Development

The easiest way to get up and running is to use the provided docker compose workflow. The only things you need installed on your computer are Docker and Git.

  1. Make sure you have Docker Desktop installed and running.
  2. Clone your fork git clone [repository url]
  3. cd into your clone.
  4. Run docker compose up to start the app.
  5. Open http://localhost:3000 and register as a new user.
  6. Run tests: docker compose run base rails test
  7. Open the rails console: docker compose run base rails console
  8. Run a psql console: docker compose run base psql

Alternatively, you can set up your development environment locally:

HostedGPT requires these services to be running:

  1. cd into your local repository clone
  2. asdf install to install the correct ruby version
  3. bundle install to install ruby gems
  4. bin/rails db:setup < Note: This will load the sample fixture data into your database
  5. bin/rails dev < Starts up all the services
  6. Open http://localhost:3000 and register as a new user.

hostedgpt's People

Contributors

al3rez avatar anandvc avatar florianfelsing avatar kaleshe avatar krschacht avatar robacarp avatar

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.