Bug description
https://docs.spring.io/spring-ai/reference/api/chat/openai-chat.html#_vision
In the 1.0.0 version of the documentation, the Vision example shown is actually from version 1.1.0-SNAPSHOT. Shouldn't the example below be included instead if it's truly the 1.0.0 documentation?
var imageData = new ClassPathResource("/test.png");
var userMessage = UserMessage.builder()
.text("Explain what do you see on this picture?")
.media(List.of(new Media(MimeTypeUtils.IMAGE_PNG, imageData)))
.build();
var response = this.chatModel
.call(new Prompt(List.of(userMessage), OpenAiChatOptions.builder().model(modelName).build()));
Comment From: dev-jonghoonpark
@NanKisu It seems that the PR has been merged. If that's right, please close the issue. : )
Comment From: NanKisu
@dev-jonghoonpark Thank you for notice. https://docs.spring.io/spring-ai/reference/api/chat/openai-chat.html#_vision The PR has been merged. But, the page still show incorrect example codes. Is there anything else I should do?
Comment From: dev-jonghoonpark
You're right.
I thought it had been completed since it appeared as merged
.
It seems the changes were lost after the commit was merged. We'll have to wait for the maintainer's response.