diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc index 01da3456f..9e6c238b3 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc @@ -138,7 +138,7 @@ Below is a simple code example extracted from https://github.com/spring-projects ---- byte[] data = new ClassPathResource("/vertex-test.png").getContentAsByteArray(); -var userMessage = new UserMessage("Explain what do you see o this picture?", +var userMessage = new UserMessage("Explain what do you see on this picture?", List.of(new Media(MimeTypeUtils.IMAGE_PNG, data))); ChatResponse response = chatModel.call(new Prompt(List.of(userMessage)));