RyanLewisHa / chatgpt-mirror

A mirror of ChatGPT based on the gpt-3.5-turbo model.

Home Page:https://fastgpt.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatGPT Mirror

Based on model gpt-3.5-turbo. Demo: https://fastgpt.app

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.

Credits

Thanks: transitive-bullshit/chatgpt-api

License

MIT licensed.

About

A mirror of ChatGPT based on the gpt-3.5-turbo model.

https://fastgpt.app


Languages

Language:HTML 57.3%Language:TypeScript 36.4%Language:JavaScript 3.4%Language:Dockerfile 3.0%