Niek / chatgpt-web
- пятница, 10 ноября 2023 г. в 00:00:11
ChatGPT web interface using the OpenAI API
ChatGPT-web is a simple one-page web interface to the OpenAI ChatGPT API. To use it, you need to register for an OpenAI API key first. All messages are stored in your browser's local storage, so everything is private. You can also close the browser tab and come back later to continue the conversation.
To run the development server, run
npm ci
npm run dev # or: npm run build
To update the awesome-chatgpt-prompts
subtree, run :
git subtree pull --prefix src/awesome-chatgpt-prompts https://github.com/f/awesome-chatgpt-prompts.git main --squash
docker compose up -d
If you don't want to wait for the API to respond, you can use the mocked API instead. To use the mocked API, edit the .env
file at root of the project and set the key VITE_API_BASE=http://localhost:5174
in it. Then, run the docker compose up -d
command above.
You can customize the mocked API response by sending a message that consists of d
followed by a number, it will delay the response the the specified number of seconds. You can customize the length of the response by including l
followed by a number, it will return a response with the specified number of sentences.
For example, sending the message d2 l10
will result in a 2 seconds delay and 10 sentences response.
You can also use ChatGPT-web as a desktop app. To do so, install Rust first. Then, simply run npm run tauri dev
for the development version or npm run tauri build
for the production version of the desktop app. The desktop app will be built in the src-tauri/target
folder.