- custom 上游新增 protocol 选项(openai|vivid);vivid 走 POST /v1/generate NDJSON 流:跳过心跳空行,取末行终态, 断流携 jobId 重连不重复扣费;参考图先 POST /v1/uploads 拿预签名再 PUT 直传;错误码 4011/4002/4293/5001/4001 分类 - 添加上游弹窗加协议二选一;账号 meta 存 protocol 并可回显 - 附 vivid 链路单测(成功流/URL 透传/失败帧/错误码/两步上传) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
ai-gateway frontend
Vue 3 + Vite admin console for the ai-gateway backend. This replaces the old
single-file static/admin.html.
Develop
npm install
npm run dev # http://localhost:5173
The dev server proxies /admin, /health, /generated, /v1 to the backend.
Start the backend separately:
# from repo root
python app.py # http://0.0.0.0:6060
If the backend runs elsewhere, set VITE_BACKEND before npm run dev:
VITE_BACKEND=http://192.168.1.10:6060 npm run dev
Build
npm run build # outputs static assets to ./dist
npm run preview # serve the production build locally
When hosting dist/ on a different origin than the API, set VITE_API_BASE
(e.g. VITE_API_BASE=http://api-host:6060) at build time, and add that frontend
origin to the backend's CORS_ORIGINS env var.