Unable to use GPT-V from the endpoint

Marc Anhoury 5 Reputation points
2023-12-21T15:37:19.85+00:00

I have sent the same request using the chat playground and it works no problem.

When I send it to the api endpoint (2023-12-01-preview) it gives me the following error, no matter what image I send (mock financial statement, icons, pictures of clothing/people).

It does not tell me what content policy is the problem and my content does not violate any. Is there something missing here?

{"error":{"code":"BadRequest","message":"The response was filtered due to the prompt triggering Azure OpenAI's content management policy. Please modify your prompt and retry. To learn more about our content filtering policies please read our documentation: \r\nhttps://go.microsoft.com/fwlink/?linkid=2198766.","param":null,"type":null}})

Here is the information:
The model is gpt-4-vision at the following url https://{myUrl}.openai.azure.com/openai/deployments/gpt-4-vision/chat/completions?api-version=2023-12-01-preview

What could cause my request to work in the playground, but not from the api? I have tried using the Base64 encoded image string from the playground JSON view to send the exact same thing, but to no success.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,676 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,134 questions
{count} vote

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.