Repository navigation
feat(media): AI video generation — Runway provider + async API + generate_video tool (#9016) - #10308
Merged
Merged
Conversation
…generate_video tool (#9016) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
Applied Black, isort, and autoflake to match code-quality checks. Triggered by workflow auto-fix-formatting.yml. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This was referenced Jun 18, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Last member of #9928. AutoBot had no video output. Mirrors the existing image generation plugin pattern end-to-end (the issue's stated approach), adding the async submit→poll lifecycle that video requires.
What Changed
Backend —
plugins/core-plugins/video-generation-plugin/(plugin.json + main.py register/unregister, mirroring image-gen):tools/providers.py—RunwayProvider(working baseline: text_to_video submit → polltasks/{id}→ normalized URL);SoraProvider+KlingProviderregistered, contract-complete, credential-gated (empty key ⇒available=False).tools/generate_video.py—GenerateVideoTool(BaseTool)→generate_video(prompt, duration) -> url, registered via the sametool_sdkregistry mechanism asgenerate_image.api/video_generation.py— async REST router:/generate(returns job id),/status/{job_id}(progress + final URL),/providers; Redis-persisted jobs, env-tunable TTL/poll. Registered infeature_routers.py(same tuple shape/place as image_generation).RUNWAY_API_KEY(baseline),SORA_API_KEY,KLING_API_KEY(required_env, secret, empty=disabled); settings: default_provider/duration/resolution/aspect_ratio.Frontend —
useVideoGeneration.ts(submit+poll),VideoCell.vue(inline<video>+ progress bar/spinner + error/download), wired inChatMessages.vue(type==='video'); i18n across all 11 locales.Verification
VideoCell.test.ts5 passed;vue-tsc0 errors;check-locale-completeness.pycomplete. py_compile + startup-import safe (lazy guarded provider/aiohttp imports).video_generation.pyrouter →feature_routers.py:226; tool →tool_sdkregistry via pluginmain.py(same path asgenerate_image).Discovery
Filed #10294: the plugin-loader entry-point path (
plugins.core_plugins.*) isn't importable (hyphenatedcore-pluginsdir) — a pre-existing bug that silently breaks loader-based tool registration for both image-gen and video-gen. The video REST API works around it via a file-path providers loader; the shared loader fix is tracked in #10294.Model Used
Claude Opus 4.8 (1M context)