gpt-web

gpt-web is a browser interface built with svelte and gin-gonic that allows you to interact with the OpenAI ChatGPT API.

Features

  • Proxy supported for the backend
  • Responsive design for mobile devices and Wechat
  • Dark mode
  • Support for Multiple languages
  • Markdown and code highlighting
  • Small frontend files (using code splitting and gzip)

Install and Running

Using released binaries:

  1. Download the zip file for your platform from the release page. For example, if you're using a Mac with an M1 or M2 chip, download gpt_web-darwin-arm64.tar.gz.
  2. Unzip the file and navigate to the folder.
  3. Edit the .env.example file. add your own OpenAI API Key) and save it as .env.
  4. Run the binary file.

Building from source:

  1. Prerequest: nodejs, yarn and golang
  2. Clone the repository: [email protected]:sleep2death/gpt-web.git.
  3. Navigate to the gpt-web directory.
  4. Edit the .env.example file. add your own OpenAI API Key) and save it as .env.
  5. Run make dev. If you don't have GNU Make installed, you can run the following commands instead:
    • yarn --cwd ./web && yarn --cwd ./web build
    • go run cmd/main.go

From Docker

  • Run directly: docker run -itd --name gpt-web -e GPTW_KEY=YOUR_OPENAI_KEY -p 8081:8081 aspirin2d/gpt-web
  • Run behind the proxy: docker run -itd --name gpt-web -e GPTW_KEY=YOUR_OPENAI_KEY -p 8081:8081 --add-host=host.docker.internal:host-gateway -e GPTW_PROXY=http://host.docker.internal:7890 aspirin2d/gpt-web

Top categories

Loading Svelte Themes