字数 0阅读时长 1 分钟
Invalid Date
AI智能摘要
GPT
The article is about the principles and guidelines to be followed while summarizing a given content. It specifies the rules to be adhered to, such as using the same language as the article, keeping the summary concise, avoiding line breaks, URLs, personal opinions, and not mentioning the user or the prompt. The goal is to create a brief and accurate summary of the provided content.

hihumanzone/fgpt部署方案(基于mckaywrigley/chatbot-ui: AI chat for any model. 的其他版本,具体依据查看其提交日志即可确认 

  1. Fock 原项目 打开下方项目,选择Fork
    1. notion image
  1. Vercel部署项目
    1. notion image
      💡
      如Vercel账户非直接为刚刚Fork项目的Github账户,则还需要添加刚刚Fork项目的Github账户
      notion image
      notion image
  1. 配置环境变量
    1. notion image
      推荐配置的环境变量如下所示
      Key
      Value
      解释
      DEFAULT_MODEL
      可选
      默认的模型(不过一般情况下GPT4可用性较差,不建议使用)
      OPENAI_API_KEY
      必选
      NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT
      可选
      用于新对话的默认系统提示
      所有可选的环境变量如下所示
      最新版本为:
      环境变量
      默认值
      描述
      OPENAI_API_KEY
      OpenAI用于 OpenAI 身份验证的默认 API 密钥
      OPENAI_API_HOST
      https://api.openai.com
      base url,供 Azure 使用 https://<endpoint>.openai.azure.com
      OPENAI_API_TYPE
      openai
      API 类型,选项为 openai 或 azure
      OPENAI_API_VERSION
      2023-03-15-preview
      仅适用于 Azure OpenAI
      AZURE_DEPLOYMENT_ID
      Azure OpenAI 时需要,参考 Azure OpenAI API 
      OPENAI_ORGANIZATION
      Your OpenAI organization ID您的 OpenAI 组织 ID
      DEFAULT_MODEL
      gpt-3.5-turbo
      新对话中使用的默认模型,对于 Azure 使用 gpt-35-turbo
      NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT
      用于新对话的默认系统提示
      NEXT_PUBLIC_DEFAULT_TEMPERATURE
      1
      新对话使用的默认温度
      GOOGLE_API_KEY
      GOOGLE_CSE_ID
  1. 添加环境变量后,即可部署,等待2~3分钟,
    1. 🚫
      不要刷新和关闭页面
  1. 然后你部署的网址就能用了
    1. 💡
      可选操作 自定义Vercel提供的项目域名和自己的域名 再次提醒Vercel自身域名已被墙

评论
Loading...