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.

Comment From: yeseong0412

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

Comment From: tzolov

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