Skip to content

Commit 63152ae

Browse files
authored
Use image first in prompts (#8941)
* Use best practice in multimodal prompts to put the image first, the string prompt second * Revert "Use best practice in multimodal prompts to put the image first, the string prompt second" This reverts commit 594a259. * Use best practice in multimodal prompts to put the image first, the string prompt second
1 parent 5296524 commit 63152ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vertexai/snippets/src/main/java/vertexai/gemini/SingleTurnMultimodal.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public static void generateContent(String projectId, String location, String mod
6161
GenerativeModel model = new GenerativeModel(modelName, generationConfig, vertexAI);
6262
ResponseStream<GenerateContentResponse> responseStream = model.generateContentStream(
6363
ContentMaker.fromMultiModalData(
64-
textPrompt,
65-
PartMaker.fromMimeTypeAndData("image/jpg", decodedImage)
64+
PartMaker.fromMimeTypeAndData("image/jpg", decodedImage),
65+
textPrompt
6666
));
6767
responseStream.stream().forEach(System.out::println);
6868
}

0 commit comments

Comments
 (0)