Chat UI to use Groq.
-
Frontend
-
Install Bun if you don't have one in your system.
-
Install dependencies:
cd frontend bun install
-
-
Backend
-
Install Poetry if you don't have one in your system.
-
Install dependencies:
cd backend poetry install
-
-
Frontend
cd frontend bun run dev
-
Backend
cd backend GROQ_API_KEY=your-groq-api-key fastapi dev main.py
-
Open http://localhost:5173/ in your browser. You're all set!
- I'm sure there are lots of UIs like this. I just wanted to make one of my own so that I can customize the design. The principle is to keep it simple and fast.
- Groq is an awsome engine that provides fast inference. But they do not offer a chat app (at least not on the web; they have an experimental Android app). This UI enables you to save the chats as local json files.
- For frontend, I chose Bun + Vite + React + TypeScript for modern web development. For backend, I chose FastAPI because it's easy for me to develop in Python.