Azure OpenAI GPT-4 Turbo Vision error: "The deployed GPT model does not support Vision Enhancement and On Your Data (OYD) with images"

Polo Sologub 0 Reputation points
2024-05-30T13:15:13.81+00:00

Hi there,

I am trying to do some few-shot in-prompt learning using GPT-4 Turbo vision but I am getting the following error:

"The deployed GPT model does not support Vision Enhancement and On Your Data (OYD) with images"

I am not using any vision enhancements and I'm not quite sure what OYD means. It does work when I use the vision-preview model. I'm in region swedencentral and the API version is '2023-12-01-preview'.

Here's the code:


chat_settings = {
    "model": deployment_name,
    "max_tokens": 1000,
    "temperature": 0.8
  }

body = {
  "model":
  chat_settings["model"],
  "messages": [{
    "role": "system",
    "content": system_content
  }, {
    "role": "user",
    "content": train_content
  }, {
    "role": "user",
    "content": test_content
  }]
}

completion = client.chat.completions.create(
    model=chat_settings["model"],
    messages=body["messages"],
    max_tokens=chat_settings["max_tokens"],
    temperature=chat_settings["temperature"]
    )

response_text = completion.choices[0].message.content

Thanks,

Polo

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,966 Reputation points Moderator
    2024-05-30T17:54:55.8666667+00:00

    Hello Polo,

    Thanks for reaching out to us, I think Vision + On your own data with images is not supported yet as the below document, please leverage other base model with On your own data feature if you only want to do some completion without computer vision enhancement.

    https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/gpt-with-vision?tabs=rest%2Csystem-assigned%2Cresource

    I hope this helps. Please feel free to let us know if you have any other concern. Thanks.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.