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
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
Visit https://localhost:3000
Thanks: transitive-bullshit/chatgpt-api