Ver Fonte

fix 生成luma视频入参

zoujiajian há 1 ano atrás
pai
commit
b4fed40402

+ 3 - 0
luma/src/main/java/com/yhlxj/service/midjourney/impl/LumaServiceImpl.java

@@ -171,6 +171,9 @@ public class LumaServiceImpl implements LumaService {
         if (StrUtil.isNotBlank(imageEndUrl)) {
             videoParam.put("image_end_url", imageEndUrl);
         }
+        videoParam.put("resolution", "720p");
+        videoParam.put("duration", "5s");
+        videoParam.put("model_name", "ray-v1");
         videoParam.put("notify_hook", lumaHost + (EnvCommonService.active_pre.equals(envCommonService.getEnv()) ? "/8083" : "/8085") + VIDEO_NOTIFY_URL);
         SubmitResult result = unifiedSubmitVideo(videoParam, num);
         if (result == null) {