Skip to content

Commit 641fdd0

Browse files
TomerAberbachstainless-app[bot]
authored andcommitted
docs: multiple image editing
1 parent 6c83caf commit 641fdd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openai-java-example/src/main/java/com/openai/example/ImageEditingExample.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public static void main(String[] args) {
2626
ImageEditParams editParams = ImageEditParams.builder()
2727
.responseFormat(ImageEditParams.ResponseFormat.URL)
2828
.image(MultipartField.<Image>builder()
29-
.value(Image.ofInputStream(alohaStream))
29+
.value(
30+
// Or use `Image.ofInputStreams` and pass a `List` to edit multiple images.
31+
Image.ofInputStream(alohaStream))
3032
.contentType("image/png")
3133
.filename(alohaFilename)
3234
.build())

0 commit comments

Comments
 (0)