Based on model gpt-3.5-turbo
. Demo: https://fastgpt.app
Tested on Node.js 18.x.
$ pnpm install
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
Thanks: transitive-bullshit/chatgpt-api