Skip to content

Commit d1b2557

Browse files
committed
Update deprecated Media constructor usage in documentation example
Signed-off-by: jitokim <[email protected]>
1 parent 53a7af5 commit d1b2557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/anthropic-chat.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Below is a simple code example extracted from https://github.com/spring-projects
182182

183183
[source,java]
184184
----
185-
byte[] imageData = new ClassPathResource("/multimodal.test.png").getContentAsByteArray();
185+
var imageData = new ClassPathResource("/multimodal.test.png");
186186
187187
var userMessage = new UserMessage("Explain what do you see on this picture?",
188188
List.of(new Media(MimeTypeUtils.IMAGE_PNG, this.imageData)));

0 commit comments

Comments
 (0)