Skip to content

feat(alibaba): add DashScope wan3.0-video provider and @hypit/alibaba-video model - #203

Closed
lucasclark7699-bot wants to merge 1 commit into
hypit-ai:mainfrom
lucasclark7699-bot:main
Closed

lucasclark7699-bot wants to merge 1 commit into
hypit-ai:mainfrom
lucasclark7699-bot:main

Conversation

@lucasclark7699-bot

Copy link
Copy Markdown

Summary

Adds Alibaba Cloud DashScope video generation support to Hypit, wired end-to-end and verified locally (a real video was generated and exported).

What is included

  • packages/alibaba-video - the Model + SVML Surface (@hypit/alibaba-video, capability alibaba-qwen-vvg) with <alibaba:TextVideo> and <alibaba:ReferenceVideo> surfaces. Ports: prompt, duration, resolution, aspectRatio, referenceImage.
  • Port table and surface decoders rewritten against the current Distribution API (createExactModelPrimaryGenerationFragment + sealGenerationRequestDraft), matching @hypit/seedance.
  • packages/provider-wanx - the missing Endpoint/Provider that actually calls DashScope (wan3.0-video): async submit to video-synthesis with X-DashScope-Async, poll the task, then collect output.video_url.
  • alibaba-wanx/ - a minimal working example: demo.svml (Author Source) + demo.svrun (Run Source) + hypit.runtime.json.

Verification

Local end-to-end: hypit build alibaba-wanx/demo.svrun --runtime alibaba-wanx/hypit.runtime.json --follow reached Build complete (~2m20s), and the resulting video was exported successfully.

Notes

  • Default model is wan3.0-video (configurable in hypit.runtime.json).
  • DashScope requires parameters.duration to be an integer; sending a string fails validation. Calling this out because it cost real debugging time.
  • The port table originally declared a single-port atMostOneOf, which the Distribution rejects (it needs at least two ports); removed.
  • The port-table/fragment code originally imported createAssembledGenerationFragment from @hypit/elaborator, which the current Distribution does not export; rewritten.

Happy to adjust naming, packaging or the default model to match upstream conventions.

- alibaba-video: fragment/surface 对齐当前 Distribution API,改用 createExactModelPrimaryGenerationFragment + sealGenerationRequestDraft,修复 @hypit/elaborator 不导出 createAssembledGenerationFragment 导致 CLI 加载失败
- alibaba-video: 端口表移除单端口 atMostOneOf(该约束至少需 2 个端口)
- provider-wanx: parameters.duration 改为整数(DashScope 要求),新增 firstNumber 读取 number 端口值
- alibaba-wanx: 新增 demo.svrun 作为 Run Source(build 需吃 .svrun,.svml 是 Author Source)
- 默认模型 wan3.0-video;本地实测 Build complete 并已导出视频
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