microsoft / chat-copilot

MIT License
2k stars 686 forks source link

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

Closed eric80116 closed 1 month ago

eric80116 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

eric80116 commented 1 month ago

@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 commented 1 month ago

@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 commented 1 month ago

@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 commented 1 month ago

@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.