最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

运维笔记admin1浏览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

发布评论

评论列表(0)

  1. 暂无评论