Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
Bob edited this page Mar 27, 2023 · 4 revisions

一键部署

Deploy with Vercel

环境变量说明

环境变量 说明 可选值
OPENAI_API_KEY OpenAI API Key (获取)
NEXT_PUBLIC_USE_USER_KEY 是否使用用户自己输入的 API 密钥 true or false
NEXT_PUBLIC_SECRET 项目的秘密字符串。用于生成 API 调用的签名 null

获取 OpenAI API Key 方法

  1. 参考大圣老师的视频教程可以注册 OpenAI 帐号
  2. 进入 https://platform.openai.com/account/api-keys 点击「Create new secret key」即可获得 OpenAI API Key

One-Click Deploy

Deploy with Vercel

Environment variable description

Environment variable Description Optional value
OPENAI_API_KEY OpenAI API Key (Get)
NEXT_PUBLIC_USE_USER_KEY Whether to use the API key entered by the user true or false
NEXT_PUBLIC_SECRET Secret string for the project. Use for generating signatures for API calls null

Get the OpenAI API Key method

Enter https://platform.openai.com/account/api-keys and click "Create new secret key" to get OpenAI API Key.