Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuezk/chatgpt-mirror
A mirror of ChatGPT based on the gpt-3.5-turbo model.
https://github.com/yuezk/chatgpt-mirror
chatgpt chatgpt-api openai openai-api
Last synced: 14 days ago
JSON representation
A mirror of ChatGPT based on the gpt-3.5-turbo model.
- Host: GitHub
- URL: https://github.com/yuezk/chatgpt-mirror
- Owner: yuezk
- Archived: true
- Created: 2023-03-04T11:50:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-02T02:02:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T15:15:01.109Z (3 months ago)
- Topics: chatgpt, chatgpt-api, openai, openai-api
- Language: JavaScript
- Homepage:
- Size: 1.47 MB
- Stars: 1,227
- Watchers: 18
- Forks: 329
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chatgpt-mirror - A mirror of ChatGPT based on the gpt-3.5-turbo model. (Openai)
README
> :warning: This repository is archived. Please use [ChatbotUI](https://github.com/mckaywrigley/chatbot-ui) instead.
# ChatGPT Mirror
Based on model `gpt-3.5-turbo`.
## Installation
> Tested on Node.js 18.x.
```bash
$ pnpm install
```## Running the app
Create a `.env` file in the root directory and add your OpenAI API key:
```properties
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# optional, support http or socks proxy
HTTP_PROXY=http://proxy-server:port
``````bash
# development
$ pnpm run start# watch mode
$ pnpm run start:dev# production mode
$ pnpm run start:prod
```Visit http://localhost:3000
## Running the app with Docker
### Build the image
```bash
$ docker build -t chatgpt-mirror .
```### Run the container
```bash
$ docker run -d -p 3000:3000 --env-file .env chatgpt-mirror
```### Run with the config file
```bash
$ docker run -d -p 3000:3000 --env-file .env -v $(pwd)/config/app.config.json:/app/config/app.config.json chatgpt-mirror
```## Configuration
You can configure the app by copying the `config/example.json` to `config/app.config.json`
and editing its values. Note: comments are not allowed in JSON files.## Error messages
Error messages for the OpenAI API can be customized by editing the `config/app.config.json` file. See the examples in the `config/example.json` file.
## Credits
Thanks: [transitive-bullshit/chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api)
## License
[MIT licensed](LICENSE).