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 |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| contexts | ||
| lib | ||
| remotion | ||
| App.css | ||
| App.jsx | ||
| config.js | ||
| index.css | ||
| landing.css | ||
| Landing.jsx | ||
| Legal.jsx | ||
| main.jsx | ||
| tokens.css | ||