Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Deployment Not Found (404 DeploymentNotFound) in Semantic Kernel #379

Open
akshayvidap128 opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@akshayvidap128
Copy link

Please provide us with the following information:
This issue is for a: (mark with an x)

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting  
- [ ] feature request  
- [ ] documentation issue or request  
- [ ] regression (a behavior that used to work and stopped in a new release)  

Minimal steps to reproduce

Configure the Semantic Kernel to use Azure OpenAI and Azure Cognitive Search with DefaultAzureCredential (via Azure.Identity library).
Set the following parameters:
Azure OpenAI:
Endpoint: https://.openai.azure.com/
Deployment Name:
API Version: 2023-05-15
Azure Cognitive Search:
Endpoint: https://.search.windows.net/
Search Index:
Attempt to invoke the chat completion operation using Azure OpenAI deployment.

Any log messages given by the failure

Microsoft.SemanticKernel.HttpOperationException: '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.
Status: 404 (DeploymentNotFound)
ErrorCode: DeploymentNotFound

Content:
{"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."}}

Headers:
Date: Fri, 15 Nov 2024 15:10:58 GMT
Connection: keep-alive
x-ms-client-request-id: 36192ffc-aba2-44b2-b7c8-3baccc61473b
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
x-ms-region: REDACTED
Content-Type: application/json
Content-Length: 197

Expected/desired behavior

The deployment should be found, and the API should return a valid chat completion response.

OS and Version?

Windows 11

Versions

Mention any other details that might be useful

The deployment was created more than 5 minutes ago.
Verified that the deployment name, endpoint, and Azure subscription are correct.
Testing with Postman using DefaultAzureCredential (via an access token) works without issues.

Thanks! We'll be in touch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant