Skip to content

I wonder why support for the media used in UserMessage is deprecated. #1274

Answered by ThomasVitale
yeseong0412 asked this question in Q&A
Discussion options

You must be logged in to vote

The deprecation affects only the constructor taking an Object as input for building the Media. You can still build a Media object by passing a org.springframework.core.io.Resource or a URL.

https://github.com/spring-projects/spring-ai/blob/main/spring-ai-core/src/main/java/org/springframework/ai/model/Media.java#L40-L70

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yeseong0412
Comment options

Answer selected by yeseong0412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants