I wonder why support for the media used in UserMessage is deprecated. #1274
Answered
by
ThomasVitale
yeseong0412
asked this question in
Q&A
-
Currently, UserMessage is created with List mediaList as the constructor. However, if Media has been discontinued since version 1.0.0 M1, what can the current Media be replaced with? ++ Is there already a new class to replace media? |
Beta Was this translation helpful? Give feedback.
Answered by
ThomasVitale
Aug 28, 2024
Replies: 1 comment 2 replies
-
The deprecation affects only the constructor taking an |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yeseong0412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The deprecation affects only the constructor taking an
Object
as input for building theMedia
. You can still build aMedia
object by passing aorg.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