AI本地化实现
项目结构
ai.tihubb.com/
├─ server/ → Node API(代理 / Prompt 处理 / 鉴权 / 未来扩展)
├─ index.js ← HTTP API(/api/run)
└─ ollama.js ← 只负责调 Ollama
├── web/ → Vite + React 前端
│ ├── index.html
│ ├── package.json ← 现在缺的就是它
│ ├── postcss.config.cjs
│ ├── tailwind.config.cjs
│ ├── vite.config.js
│ └── src/
│ ├── main.jsx
│ ├── App.jsx ← 只调 server API
│ └── index.css
└─ README.md
ai.tihubb.com/
├─ server/ → Node API(代理 / Prompt 处理 / 鉴权 / 未来扩展)
├─ web/ → Vite + React 前端
└─ README.md