Svelte GPT is a Chat UI for interacting with language model APIs.
It runs in your browser on localhost:1337
.
gpt-4o-mini
then switch to Claude 3.5 Sonnet
system_prompt
temperature
, top_p
, etc.http://localhost:1337/?model=gpt-4o&prompt=wake+up+gpt
Open AI
Anthropic
X
Cohere
Meta/OS (via llama-api.com)
Download the latest Pocketbase release
pocketbase
executable in the /pocketbase/
folderpocketbase
for the first time to initialise it⌘+Click
-> Open
-> Confirm open
Create a .env
file in the root directory, add OPENAI_TOKEN=<your_token_goes_here>
and save:
OPENAI_TOKEN=sk-YoUrOpEnAiAcCeSsToKeNtHaTyOuGeTfRoMtHeIrWeBsItE
ANTHROPIC_API_KEY=...
GEMINI_API_KEY=...
GROK_API_KEY=...
COHERE_API_KEY=...
LLAMA_API_KEY=...
Install dependencies
npm install
Compile the SvelteKit app:
npm run build
Launch both Pocketbase and Svelte GPT with the shell script:
./start.sh
./start.sh dev
)Go to http://localhost:1336/_/
(⌘+click the link) and add an admin email + password to finish setting up Pocketbase
Go to http://localhost:1337
and start chatting.
/static/img/avatar.png
to your own avatar(Tip: You can use git update-index --assume-unchanged static/img/avatar.png
to ignore the change if you're developing).
This isn't production ready code - it's a personal project that I originally had no intention of sharing. I use Svelte GPT a lot, and I could probably be persuaded to develop it properly, but it works for my needs and I'm currently focused on other things!