A demo repo based on OpenAI GPT-3.5 Turbo API.
Demo: https://chatgpt.busiyi.world
-
Setup & Install dependencies
First, you need Node.js (v18+) installed.
pnpm i
-
Make a copy of
.env.example
, then rename it to.env
-
Add your OpenAI API key to
.env
OPENAI_API_KEY=sk-xxx... // Also you can OPENAI_API_KEY=sk-xxx|sk-yyy
-
Run the app
npm run dev
-
Deploy to Vercel
vercel deploy --prod
await fetch("https://chatgpt.busiyi.world/api", {
method: "POST",
body: JSON.stringify({
message: "xxx",
key: "xxxx"
})
})
MIT