Yet another ChatGPT UI, but more fit and svelte, and with a secure backend.
Backend/Frontend Sveltekit app to have multiple conversations with chatbots. It connects to the OpenAI API.
.env file with your OpenAI Api key, and the urls of your postgres databases. See .env.supabase.example for reference. Your file should look like this:SECRET_OPENAI_API_KEY="sk-XXXX"
DIRECT_URL="postgres://postgres:[YOUR_PASSWORD]@project.supabase.co:5432/postgres?connect_timeout=300"
DATABASE_URL="postgres://postgres:[YOUR_PASSWORD]@project.supabase.co:6543/postgres?pgbouncer=true"
If you want to use sqlite for a local database, check .env.sqlite.example, your file should look like this:
SECRET_OPENAI_API_KEY="sk-XXXXXXXX"
DATABASE_URL="file:./database_name.db"
npm installnpx prisma migrate dev to start the database and apply the schemanpm run dev to executeAdd the environment variables to your system.
For serverless(e.g. Vercel) you can use Supabase as database, check this documentation.
Hi! you can find me here @julioandresdev