Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HowTo: Self-host without Firebase / Share feature #6

Open
Shackless opened this issue Mar 23, 2023 · 2 comments
Open

HowTo: Self-host without Firebase / Share feature #6

Shackless opened this issue Mar 23, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers self-hosting

Comments

@Shackless
Copy link
Contributor

Shackless commented Mar 23, 2023

The share feature in SlickGPT requires a database because we somehow have to pass the Chat object from client A to client B.

The project is currently set up to use a Firebase Realtime database as easy "JSON dump storage".

Create a branch and some documentation where the Share feature can easily be disabled and all Firebase dependencies (mostly the env vars) are removed from SlickGPT so that devs can run their own instance quicker and with less hassle in case they don't need to share chats.

Also document more clearly which code devs would have to edit to use another database provider than Firebase (which is basically just the share endpoint)

@Shackless Shackless added documentation Improvements or additions to documentation good first issue Good for newcomers labels Mar 23, 2023
@Shackless Shackless changed the title HowTo: Self-host ChatGPT without Firebase / Share feature HowTo: Self-host SlickGPT without Firebase / Share feature Mar 23, 2023
@Shackless Shackless changed the title HowTo: Self-host SlickGPT without Firebase / Share feature HowTo: Self-host without Firebase / Share feature Mar 23, 2023
@ansysic
Copy link

ansysic commented Mar 28, 2023

If you have experienced a build error in Vercel due to missing environment variables, I recommend following the steps below to resolve this issue.

  1. Locate the .env.example file in the base directory.
  2. Copy this file.
  3. Fill the copied file with dummy data, replacing any missing environment variables.
  4. Save the copied file as .env in the base directory.
  5. Try to build with Vercel again.

By following these steps, I was able to successfully build with Vercel even with missing environment variables causing an error.

@Shackless
Copy link
Contributor Author

Maybe we should use Prisma in the share endpoint to detach the database logic from Firebase. Then we could also build a version with a local sqlite database and dockerize it as suggested in #23. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers self-hosting
Projects
None yet
Development

No branches or pull requests

2 participants