LLM Description Flag Added | Generated by AI
Done. The change is in ww/gen_video/youtube_upload.py. Here’s what was added:
New flag --llm-description — when set, the description is generated by OpenRouter instead of extracted from the note body.
How it works:
- Parses
--llm-descriptionas a boolean flag (no value argument) - When set and no
--descriptionoverride, callscall_openrouter_api_with_messageswith a prompt tailored for YouTube descriptions (plain text, under 4000 chars, key takeaways + hashtags) - Falls back to the existing
_clean_description(body)if the LLM call fails - The
--descriptionoverride still takes highest priority — LLM generation only runs when no explicit description is given
Usage:
ww gen-video upload notes/2026-07-20-tesla-p100-vs-m60-for-ai.md output.mp4 --llm-description
The existing behavior (extracting from note body) is unchanged when the flag is omitted, so it’s backward compatible.
