Skip to content

VIP videos with sound: make_movie on MiniMax-H3 through draw-api - #314

Merged
iamwavecut merged 1 commit into
mainfrom
feat/vip-movie-command
Dec 3, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
feat/vip-movie-command

Conversation

@iamwavecut

@iamwavecut iamwavecut commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

What changes

  • New dialog tool make_movie: a five-second video with sound (speech, effects, music) rendered by MiniMax-H3 (pi-H3 few-step) on aifarm-draw. VIP only: for other users the scheduler returns vip_only ("Видео со звуком доступно только VIP-пользователям…") and the model can offer make_video (the silent clip) instead.
  • Clips and videos share the VideoGen job, its queues and limits. The job meta gains sound and steps; they are written only when set, so existing jobs round-trip unchanged.
  • Optional argument quality: "high" asks for 4 sampling steps, anything else for the default 2.
  • Prompt optimizer: prompts/video/movie_optimizer.prompt turns the request into a MiniMax-H3 prompt (scene, camera, speech lines in the requested language, sound).
  • Rendering: draw-api Discovery endpoint h3video_generate (POST /v1/h3video/generate with steps); delivery uses sendVideo instead of sendAnimation.
  • Shortcuts !кино, !movie and /movie request the tool explicitly; make_movie is listed in the VIP entitlements and in the system prompt routing.

Prompt changes

  • prompts/aifarm/system.prompt: two in-place edits inside the existing agent_behavior and side_effect_end text (make_movie next to make_video, routing of video requests by VIP). No role markers or sections change; the cached prefix changes from that paragraph on.
  • prompts/video/movie_optimizer.prompt: new file with the role layout of prompts/video/optimizer.prompt ({{role "system"}} rules and examples, {{role "user"}} with request and optional brief) and the same JSON output contract.

Dependency

draw-api must serve h3video_generate before this ships (iamwavecut/aifarm-draw, MiniMax-H3 video worker). Until then a VIP make_movie request fails at Discovery resolution.

Verification

  • cargo clippy --workspace --all-targets -- -D warnings: clean.
  • Unit tests: openplotva-dialog 115, openplotva-media 64, openplotva-taskman 70, openplotva-app (video, dialog tools, shortcuts) 39 — all pass. New tests cover the VIP gate, the meta round trip with and without sound/steps, the tool catalog, shortcut parsing and the sendVideo delivery method.

…api h3video_generate

make_movie schedules a five-second video with speech, effects and music for VIP users; other users get a
vip_only refusal and the model offers make_video (a silent clip). Clips and videos share the VideoGen job,
queues and limits: the job meta carries sound and the step count (quality "high" asks for 4 steps), the
optimizer writes a MiniMax-H3 prompt (prompts/video/movie_optimizer.prompt), draw-api renders on
h3video_generate, and the bot replies with sendVideo instead of sendAnimation. Shortcuts !кино, !movie and
/movie request the tool explicitly.
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Warnings
⚠️ Prompt files are cache-sensitive contracts; confirm prompt shape and role markers were preserved intentionally.
Messages
📖 Danger checked 15 changed file(s).

Generated by 🚫 dangerJS against e5b6ef0

@iamwavecut
iamwavecut merged commit 5f7fc0b into main Dec 3, 2026
11 of 14 checks passed
@iamwavecut
iamwavecut deleted the feat/vip-movie-command branch December 3, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant