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

Microsoft.SemanticKernel.KernelException: GetUserIntentAsync failed. ---> Microsoft.SemanticKernel.HttpOperationException: Resource not found Status: 404 (Resource Not Found) #1105

Closed
eric80116 opened this issue Aug 8, 2024 · 6 comments

Comments

@eric80116
Copy link

Hi,

I have configured the information of AzureOpenAIText and AzureOpenAIEmbedding both in appsettings.json and appsettings.Development.json. But still got the error mesage when sending chat message.
Any suggestion where I could check and find out more detail?
capture_240808_180720
capture_240808_180403
capture_240808_180500

@rogeriorfp
Copy link

Hi,

I have configured the information of AzureOpenAIText and AzureOpenAIEmbedding both in appsettings.json and appsettings.Development.json. But still got the error mesage when sending chat message. Any suggestion where I could check and find out more detail? capture_240808_180720 capture_240808_180403 capture_240808_180500

I would check api-version query parameter

@glahaye
Copy link
Contributor

glahaye commented Aug 12, 2024

@eric80116 Have you created entries named gpt-4o and text-embedding-ada-002 in you Azure Open AI account?

@eric80116
Copy link
Author

@rogeriorfp thanks for suggestion, but i have tried to call the models by postman with the same endpoint with the same api-version param, I can get the response successfully.
capture_240813_092747
capture_240813_092842

@eric80116
Copy link
Author

eric80116 commented Aug 13, 2024

@eric80116 Have you created entries named gpt-4o and text-embedding-ada-002 in you Azure Open AI account?

Hi @glahaye Do you mean the deployment name? I used the default name for deployment which are gpt-4o and text-embedding-ada-002. If it is different with the entries name you mention, could you give me more detail?
capture_240813_093242

@glahaye
Copy link
Contributor

glahaye commented Aug 13, 2024

@eric80116 That's what I meant. And what you have looks correct.

I checked your error message again and I see it mentions something about an apim-request-id... Is any part of your solution behind Azure API Management? Maybe a misconfigured APIM could be causing the problem?

@eric80116
Copy link
Author

eric80116 commented Aug 14, 2024

@glahaye I tried to remove my API Key which hard coded in the appsettings.json and appsettings.Development.json to make it read from the dotnet secret directly. Also change my Endpoint to "https://[aoai_resource_name].openai.azure.com/", then it works now. Thanks for help.

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

3 participants