当前位置: 首页 > news >正文

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

1,启动web界面

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

https://nodejs.org/en/download/package-manager
在这里插入图片描述

# 使用nvm 安装最新的 20 版本。
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source /root/.bashrc
nvm install 20git clone https://github.com/Chanzhaoyu/chatgpt-web.git
cd chatgpt-web

安装依赖,启动web

npm install --registry=https://registry.npmmirror.com# 启动 web 服务,设置端口 8080
npm run dev -- --port 8080

img
``

2,启动serve服务

cd service
npm install --registry=https://registry.npmmirror.comexport OPENAI_API_KEY=1234
export OPENAI_API_MODEL=gpt-3.5-turbo
export OPENAI_API_BASE_URL=http://0.0.0.0:9997/v1npm run dev

在这里插入图片描述

http://www.lryc.cn/news/357475.html

相关文章:

  • TOGAF企业架构章节(核心)知识点(一)
  • 手摸手教你uniapp原生插件开发
  • C++进程间通信 消息队列
  • mysql中InnoDB的统计数据
  • P459 包装类Wrapper
  • Kong网关的负载均衡
  • 这是一个逗号
  • oracle tree
  • react-beautiful-dnd 横纵排序demo
  • web练习
  • 模型蒸馏笔记
  • HAL库使用FreeRTOS实时操作系统时配置时基源(TimeBase Source)
  • 如何让你的网站能通过域名访问
  • Spring Boot + Spring Security + JWT 从零开始
  • 【busybox记录】【shell指令】rmdir
  • [LitCTF 2023]yafu (中级) (素数分解)
  • MySQL alter 语句
  • 列表推导式(解析式)python
  • YOLO-10更快、更强
  • 新火种AI|寻求合作伙伴,展开豪赌,推出神秘AI项目...苹果能否突破AI困境?
  • MFC工控项目实例一主菜单制作
  • 代码随想录-Day22
  • uniapp项目 使用vue-plugin-hiprint静默打印功能
  • 视频汇聚EasyCVR视频监控平台GA/T 1400协议特点及应用领域解析
  • 基于似然场的快速避障算法
  • Flutter 中的 IndexedStack 小部件:全面指南
  • 基于51单片机的交通灯设计
  • ECMAScript 详解
  • 使用Java Swing制作一个飞翔的小鸟游戏
  • leetcode 684.冗余连接