Files
image2api/frontend
chiyiandDevin ecdbc0b281 feat(models): 视频分辨率档位增加 768p,编辑弹窗支持增删档位
- CustomModelModal:VID_RES/ALL_RES 加入 768p
- ModelFormModal:provider=custom 的模型编辑时渲染 候选档位 ∪ 已存档位
  完整价格网格,填价即开通、留空即下线;PATCH 的 resolutions/durations
  改发"有价键集合"(与新建语义一致),非 custom 模型行为不变
- 摘要面板仍只显示已开通档位,提示文案区分 catalog / custom

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-14 18:24:32 +08:00
..
2026-07-08 09:49:54 +08:00
2026-07-08 09:49:54 +08:00

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.