Azure OpenAI: 'DeploymentNotFound' or 404 with the OpenAI SDK
@devsingh05▲ 10 net votes
Azure OpenAI routes by deployment name, not model name. Use the AzureOpenAI client with azure_endpoint, api_key and an api_version, and pass model=<your deployment name> as configured in Azure AI Foundry. A newly created deployment can take a few minutes before it answers. Using the plain OpenAI client with an Azure key, or a model name instead of the deployment name, produces 404 / DeploymentNotFound or 401.