|
1 | 1 | // Copyright (c) Alibaba, Inc. and its affiliates. |
2 | 2 | package com.alibaba.dashscope.aigc.videosynthesis; |
3 | 3 |
|
4 | | -import static com.alibaba.dashscope.utils.ApiKeywords.*; |
5 | | - |
6 | 4 | import com.alibaba.dashscope.base.HalfDuplexServiceParam; |
7 | 5 | import com.alibaba.dashscope.exception.InputRequiredException; |
8 | 6 | import com.alibaba.dashscope.exception.NoApiKeyException; |
|
11 | 9 | import com.alibaba.dashscope.utils.JsonUtils; |
12 | 10 | import com.alibaba.dashscope.utils.PreprocessInputImage; |
13 | 11 | import com.google.gson.JsonObject; |
14 | | -import java.nio.ByteBuffer; |
15 | | -import java.util.ArrayList; |
16 | | -import java.util.HashMap; |
17 | | -import java.util.List; |
18 | | -import java.util.Map; |
19 | 12 | import lombok.Builder; |
20 | 13 | import lombok.Data; |
21 | 14 | import lombok.EqualsAndHashCode; |
22 | 15 | import lombok.Singular; |
23 | 16 | import lombok.experimental.SuperBuilder; |
24 | 17 |
|
| 18 | +import java.nio.ByteBuffer; |
| 19 | +import java.util.ArrayList; |
| 20 | +import java.util.HashMap; |
| 21 | +import java.util.List; |
| 22 | +import java.util.Map; |
| 23 | + |
| 24 | +import static com.alibaba.dashscope.utils.ApiKeywords.*; |
| 25 | + |
25 | 26 | @EqualsAndHashCode(callSuper = true) |
26 | 27 | @Data |
27 | 28 | @SuperBuilder |
@@ -93,6 +94,9 @@ public class VideoSynthesisParam extends HalfDuplexServiceParam { |
93 | 94 |
|
94 | 95 | @Builder.Default private String shotType = null; |
95 | 96 |
|
| 97 | + /** The enable_overlays parameter. */ |
| 98 | + @Builder.Default private Boolean enableOverlays = null; |
| 99 | + |
96 | 100 | /** The inputs of the model. */ |
97 | 101 | @Override |
98 | 102 | public JsonObject getInput() { |
@@ -186,6 +190,10 @@ public Map<String, Object> getParameters() { |
186 | 190 | if (shotType != null) { |
187 | 191 | params.put(SHOT_TYPE, shotType); |
188 | 192 | } |
| 193 | + if (enableOverlays != null) { |
| 194 | + params.put(ENABLE_OVERLAYS, enableOverlays); |
| 195 | + } |
| 196 | + |
189 | 197 | params.putAll(super.getParameters()); |
190 | 198 | return params; |
191 | 199 | } |
|
0 commit comments