Skip to content

Commit f499a6d

Browse files
mose-x.zmkevinlin09
authored andcommitted
fix wan2.5 i2i
1 parent 9b72b7d commit f499a6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/alibaba/dashscope/aigc/imagesynthesis/ImageSynthesisParam.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,11 @@ public void checkAndUpload() throws NoApiKeyException, UploadFileException {
171171
this.baseImageUrl = inputChecks.get(BASE_IMAGE_URL);
172172
this.maskImageUrl = inputChecks.get(MASK_IMAGE_URL);
173173
if (imagesSize > 0) {
174+
List<String> newImages = new ArrayList<>();
174175
for (int i = 0; i < imagesSize; i++) {
175-
this.images.add(inputChecks.get(IMAGES + "[" + i + "]"));
176+
newImages.add(inputChecks.get(IMAGES + "[" + i + "]"));
176177
}
178+
this.images = newImages;
177179
}
178180
}
179181
}

0 commit comments

Comments
 (0)