How do I resolve error DeploymentNotFound for Azure OpenAI Python API call?

Amin, Ishmael 5 Reputation points
I'm gettin the following error message when calling the Azure OpenAI API using Python json.  
#<Response [404]>
#    "error": {
#        "code": "DeploymentNotFound",
#        "message": "The API deployment for this resource does not exist. If you #created the deployment within the last 5 minutes, please wait a moment and try #again."
#    }
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
25,567 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amin, Ishmael 5 Reputation points

    I resolved the issue by removing hyphens from the deployment name. The problem is that the model deployment name create prompt in Azure OpenAI, Model Deployments states that '-', '', and '.' are allowed. However, when you create the deployment name in the OpenAI Studio, the create prompt does not allow '-', '', and '.' . This is inconsistent between the two different methods to create a deployment name.