Closed eric80116 closed 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?
I would check api-version query parameter
@eric80116 Have you created entries named gpt-4o and text-embedding-ada-002 in you Azure Open AI account?
@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.
@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?
@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?
@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.
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?