【本地运行chatgpt-web】启动前端项目和service服务端项目,也是使用nodejs进行开发的。两个都运行成功才可以使用!

1,启动web界面 https:githubChanzhaoyuchatgpt-web#node https:nodejsendownloadpackage-manager# 使用nvm 安

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

发布者:admin,转转请注明出处:http://www.yc00.com/web/1740416830a4240972.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信