yuezk/chatgpt-mirror
JavaScript대체: ChatGPT
A mirror of ChatGPT based on the gpt-3.5-turbo model.
chatgptchatgpt-apiopenaiopenai-api
주요 지표
스타 성장
스타
1.2k
포크
308
주간 성장
+-1
이슈
0
1k1.1k1.2k
2023년 3월2023년 10월2024년 5월2024년 12월2025년 8월2026년 3월2026년 10월
아티팩트npm
README
:warning: This repository is archived. Please use ChatbotUI instead.
ChatGPT Mirror
Based on model gpt-3.5-turbo.
Installation
Tested on Node.js 18.x.
$ pnpm install
Running the app
Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# optional, support http or socks proxy
HTTP_PROXY=http://proxy-server:port
# 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
$ docker build -t chatgpt-mirror .
Run the container
$ docker run -d -p 3000:3000 --env-file .env chatgpt-mirror
Run with the config file
$ 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