Files
image2api/frontend
chiyiandClaude Opus 4.8 d289ec378d feat(ui): rename 图生图→参考图 with count; distinguish video 首尾帧 vs 参考图
- model list: any model with max_reference_images>0 shows 首尾帧 N (frame mode)
  or 参考图 N (asset/other); drop the count-less "图生图" label
- ModelFormModal / TestModal: capability labels use 参考图 (not 图生图)
- grok-video uses reference_mode=asset (参考图), runway/adobe video stay frame (首尾帧)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 14:51:26 +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.