Self-hosters asked for a pipeline that never calls Google. LLM_BASE_URL (+ LLM_MODEL, LLM_API_KEY) routes the transcript scoring and detail passes of get_viral_clips to a /chat/completions endpoint; the answer is validated with the same pydantic schemas Gemini enforces server-side, so main.py sees one shape. json_schema is requested first and the request falls back to json_object and then to free text when a server rejects the field. Scoring batches drop from 8 to 3 windows on the local path: Ollama's default 4k context truncates silently and a truncated prompt scores garbage. Self-host /api/process now accepts a request without X-Gemini-Key when the backend is configured, /api/config exposes localLlm and the dashboard stops demanding the key. Frame-based stages (layout picker, on-screen content, silent videos) stay on Gemini and degrade as before without a key; the silent-video path says so instead of failing generically. Verified end to end with Ollama 0.13.5 + qwen2.5:7b on an M1 Pro: a 15-min talk, 14 windows, 6 clips with usable hooks and titles, six local calls and zero requests to Google. Claude-Session: https://claude.ai/code/session_014i9z6mLTy978uRCfSsMfBq |
||
|---|---|---|
| .. | ||
| 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.