feat: vidu video add starEnd and reference gen video

This commit is contained in:
feitianbubu
2025-09-19 17:44:58 +08:00
parent 22db389fac
commit b183f2f663
3 changed files with 16 additions and 2 deletions

View File

@@ -81,6 +81,14 @@ func ValidateBasicTaskRequest(c *gin.Context, info *RelayInfo, action string) *d
if req.HasImage() {
action = constant.TaskActionGenerate
if info.ChannelType == constant.ChannelTypeVidu {
// vidu 增加 首尾帧生视频和参考图生视频
if len(req.Images) == 2 {
action = constant.TaskActionFirstTailGenerate
} else if len(req.Images) > 2 {
action = constant.TaskActionReferenceGenerate
}
}
}
storeTaskRequest(c, info, action, req)