/api/process (and the process_video MCP tool) now accept optional target_clips (1-15) and clip_min_seconds / clip_max_seconds (5-180), surfaced in the dashboard as a collapsed 'advanced options' section. Blank means the AI decides, keeping the default request byte-identical. Plumbed through the same env overrides the A/B harness already reads: CLIP_TARGET_MIN/MAX (existing) and a new clip_duration_bounds() in clip_selection.py backing CLIP_MIN_SECONDS/MAX_SECONDS. The detail and visual prompts take the band as template placeholders instead of the hardcoded 15-60, and word-snapping enforces the same bounds. All three knobs are honest targets, not guarantees: the model still returns fewer clips when the material doesn't hold them, and the UI copy says so. Verified live: target_clips=2 + band 8-15s on the demo video returned exactly 2 clips of 13.3s and 13.7s (the uncontrolled run gave one 41.7s clip); out-of-range values 400 with a named reason. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.