安装next-ai-draw-io

1、安装nodejs

sudo apt remove -y libnode-dev nodejs npm

sudo apt update sudo apt install -y nodejs

2、下载next-ai-draw-io

git clone https://github.com/DayuanJiang/next-ai-draw-io.git

3、安装依赖

cd next-ai-draw-io

rm -rf node_modules package-lock.json

npm install --registry=https://registry.npmmirror.com

4、申请API 密钥

SiliconCloud

在上面的网站申请key

5、部署

vi .env.local

AI_PROVIDER=openai

AI_MODEL=Pro/Qwen/Qwen2.5-Coder-7B-Instruct

OPENAI_API_KEY=sk-xxx

OPENAI_BASE_URL=https://api.siliconflow.cn/v1

上面key替换成自己申请的key

运行npm run dev

在 next-ai-draw-io 根目录

grep -r 'developer' . --include="*.js" --include="*.mjs" \

--exclude-dir=node_modules --exclude-dir=.git

将developer替换成system

相关推荐
小草cys20 小时前
在 openEuler 上安装 DDE 图形桌面环境(适用于华为鲲鹏服务器/PC)
运维·服务器
天才奇男子1 天前
HAProxy高级功能全解析
linux·运维·服务器·微服务·云原生
小李独爱秋1 天前
“bootmgr is compressed”错误:根源、笔记本与台式机差异化解决方案深度指南
运维·stm32·单片机·嵌入式硬件·文件系统·电脑故障
学嵌入式的小杨同学1 天前
【Linux 封神之路】信号编程全解析:从信号基础到 MP3 播放器实战(含核心 API 与避坑指南)
java·linux·c语言·开发语言·vscode·vim·ux
酥暮沐1 天前
iscsi部署网络存储
linux·网络·存储·iscsi
❀͜͡傀儡师1 天前
centos 7部署dns服务器
linux·服务器·centos·dns
Dying.Light1 天前
Linux部署问题
linux·运维·服务器
S19011 天前
Linux的常用指令
linux·运维·服务器
萤丰信息1 天前
AI 筑基・生态共荣:智慧园区的价值重构与未来新途
大数据·运维·人工智能·科技·智慧城市·智慧园区
小义_1 天前
【RH134知识点问答题】第7章 管理基本存储
linux·运维·服务器