Thanks for reaching out to us, it will be better if you post a thread in the issue page of this repo directly - https://github.com/Azure-Samples/azure-search-openai-demo/issues
To answer this question generally, the error message you're seeing, "405 Method Not Allowed", is a common HTTP response status code indicating that the server understands the request method, but it is not supported or allowed by the chosen resource. In your case, the error message suggests that the endpoint URL you are trying to hit is not configured to accept the type of request you are making. More specifically, the endpoint you're trying to reach might not be set up to handle the chat functionality you're trying to use.
The tutorial you're following specifies that the URI should end with "/chat". If your URI doesn't end with "/chat", it's possible that you're not hitting the right endpoint. Here's what you can do to fix this:
Check your my_config.json
file and ensure that the targetUrl
is set correctly. The targetUrl
should be the URL of your chat endpoint, and it should end with "/chat".
It should look something like this:
{
"targetUrl": "https://app-backend-5xp2xaqtv4u7c.azurewebsites.net/chat",
...
}
2. Make sure that your chat app is correctly deployed on Azure and the "/chat" endpoint is enabled.
If you're still facing the problem after checking these points, you may want to look into the deployment of your app on Azure. The tutorial should work for both local and Azure deployments, but there might be additional steps or considerations for Azure deployments. You can check the Azure documentation or contact Azure support for more help on this.
Please have a try and let us know how it works.
Regards,
Yutong