Skip to content

A demo repo based on OpenAI API (gpt-3.5-turbo)

License

Notifications You must be signed in to change notification settings

lianxia2020/chatgpt

 
 

Repository files navigation

ChatGPT-API Demo

A demo repo based on OpenAI GPT-3.5 Turbo API.

基于 OpenAI GPT-3.5 Turbo API 的演示存储库。

Run Locally(本地运行)

  1. Setup & Install dependencies (设置和安装依赖项)

    First, you need Node.js installed.(首先,您需要安装 Node.js。)

    npm i
  2. Make a copy of .env.example, then rename it to .env (创建 的副本,然后将其重命名为.env.example .env)

  3. Add your OpenAI API key to .env (将您的 OpenAI API 密钥添加到 .env)

    OPENAI_API_KEY=sk-xxx...
    
  4. Run the app (运行应用)

    npm run dev

Deploy With Vercel (使用 Vercel 进行部署)

Deploy with Vercel

注 :部署完成之后,国内进不去,得使用魔法!

License

MIT

麻省理工学院

来源 :

Github

About

A demo repo based on OpenAI API (gpt-3.5-turbo)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 63.5%
  • Astro 24.5%
  • JavaScript 7.3%
  • CSS 3.2%
  • Shell 1.5%