推荐一款开源ChatGPT前端界面库-适用于团队内部自建Web对接GPT接口需求

项目名称是chatbot-ui

项目地址:https://github.com/mckaywrigley/chatbot-ui


该项目仿造ChatGPT官网,效果几乎是一模一样。

因为对接官网接口,所以需要把项目部署在海外服务器,或者配置接口代理域名

适用于,团队内部不是人人都会翻墙,并注册账号,搭建一个前端Web可以让大家一起使用


使用方法:

git clone https://github.com/mckaywrigley/chatbot-ui.git 

npm i

npm run dev


配置KEY,可以在界面中配置,或者在环境变量文件.env.local中配置

OPENAI_API_KEY=YOUR_KEY


配置代理域名方式

utils/app/const.ts

export const DEFAULT_SYSTEM_PROMPT =
  "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown.";

export const OPENAI_API_HOST =
  process.env.OPENAI_API_HOST || 'https://api.openai.com';