admin管理员组

文章数量:1530518

1,启动web界面

https://github/Chanzhaoyu/chatgpt-web#node

https://nodejs/en/download/package-manager

# 使用nvm 安装最新的 20 版本。
curl -o- https://raw.githubusercontent/nvm-sh/nvm/v0.39.7/install.sh | bash
source /root/.bashrc
nvm install 20

git clone https://github/Chanzhaoyu/chatgpt-web.git
cd chatgpt-web

安装依赖,启动web

npm install --registry=https://registry.npmmirror

# 启动 web 服务,设置端口 8080
npm run dev -- --port 8080


``

2,启动serve服务

cd service
npm install --registry=https://registry.npmmirror

export OPENAI_API_KEY=1234
export OPENAI_API_MODEL=gpt-3.5-turbo
export OPENAI_API_BASE_URL=http://0.0.0.0:9997/v1

npm run dev

本文标签: 项目才可以服务端两个web