Skip to content

Commit 95bb618

Browse files
jitokimchedim
authored andcommitted
Update deprecated Media constructor usage in documentation example (spring-projects#2762)
Signed-off-by: jitokim <[email protected]>
1 parent a2266c6 commit 95bb618

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)