Skip to content

Conversation

yeseong0412
Copy link
Contributor

@yeseong0412 yeseong0412 commented Jul 16, 2024

Hello

Currently, GPT_4_VISION_PREVIEW will continue to be available only to existing users of this model starting June 17, 2024. So, when a request is made, the following response code is returned.

        val path = Paths.get("/Users/yeseong0412/Desktop/alpha-map-server/multimodal.test.png");
        val imageData = Files.readAllBytes(path);

        val userMessage = UserMessage("Explain what do you see on this picture?",
            listOf(Media(MimeTypeUtils.IMAGE_PNG, imageData)))

        val response = openAiChatModel.call(
            Prompt(listOf(userMessage),
                OpenAiChatOptions.Builder()
                    .withModel(OpenAiApi.ChatModel.GPT_4_VISION_PREVIEW.value)
                    .build())
        )
{
    "error": {
        "message": "The model `gpt-4-vision-preview` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}

So users added TIP and links to related resources to deal with the same problem.

We have added information for reference as there are examples of models that are scheduled to end support.
@yeseong0412
Copy link
Contributor Author

yeseong0412 commented Jul 16, 2024

Additionally, the link shown in the attached photo also does not work. I think this part needs to be modified too.

This link contains the part in question

스크린샷 2024-07-16 오후 11 34 08

@tzolov
Copy link
Contributor

tzolov commented Jul 17, 2024

Thanks @yeseong0412 ,
I also update the the relevant docs, and links in b36ee13

@tzolov tzolov merged commit cf785e0 into spring-projects:main Jul 17, 2024
@tzolov tzolov added this to the 1.0.0-M2 milestone Jul 17, 2024
@tzolov tzolov self-assigned this Jul 17, 2024
@yeseong0412 yeseong0412 deleted the add-and-replace-model-deprecation-info branch July 24, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants