admin管理员组文章数量:1026221
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
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
版权声明:本文标题:【本地运行chatgpt-web】启动前端项目和service服务端项目,也是使用nodejs进行开发的。两个都运行成功才可以使用! 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/jiaocheng/1740416830a1763592.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论