I am testing the Azure OpenAI Response endpoint. I got the basics working with rest calls - tool calling also works. In these calls I consume the models I have deployed in Azure Foundry.
I really want to test the CUA optiion, that is described here https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/responses?tabs=rest-api#computer-use - I am aware, that the documentation is for python, but the nuts and bolts should be the same underneath the python library.
When calling my endpoint like below, the response fails
$parameters = @{
uri = "https://<mydeployment>.openai.azure.com/openai/responses?api-version=2025-03-01-preview"
Method = "Post"
Headers = @{
"api-key" = "MySecretKey"
}
ContentType = "application/json"
body = '{
"input": [
{
"role": "user",
"content": "Check the latest OpenAI news on bing.com\r\n"
}
],
"reasoning": {
"summary": "concise"
},
"tools": [
{
"display_width": 1024,
"environment": "browser",
"display_height": 768,
"type": "computer_use_preview"
}
],
"model": "computer-use-preview",
"truncation": "auto"
}'
}
Invoke-RestMethod @parameters
{
"error": {
"message": "The requested model \u0027-\u0027 with deployment name computer-use-preview does not exist.",
"type": "invalid_request_error",
"param": "model",
"code": "model_not_found"
}
}
It seems that the computer-use-preview model is not available. What do I need to do to deploy that model?