tapos12 Is is working, I am using it. You can test using curl before developing. Curl code is available in Azure OpeAI Studio on Chat section, you select the GPT4o deployment and just copy paste the curl code (press in code and change to Curl).
Example of working Curl (Get the correct url for this in code section on Chat in AzurOpenAI Studio, it already comes correctly formatted):
curl "https://<Your Container Domain>.openai.azure.com/openai/deployments/<Deployment Name>/chat/completions?api-version=2023-07-01-preview" \
-H "Content-Type: application/json" \
-H "api-key: <Your API Key>" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
],
"max_tokens": 4096,
"temperature": 0.7,
"frequency_penalty": 0,
"presence_penalty": 0,
"top_p": 0.95,
"stop": null
}'
To list available models in the Zone where your deployment is you can use this:
curl -X GET "https:/<Your Container Domain>.openai.azure.com/openAI/models?api-version=2023-07-01-preview" \
-H "Content-Type: application/json" \
-H "api-key: <Your API Key>"