最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

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

业界 admin 21浏览 0评论

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

发布评论

评论列表 (0)

  1. 暂无评论