While preparing a demo for my team, I encountered the following error after upgrading to Semantic Kernel 1.20.0(alpha).
Microsoft.SemanticKernel.HttpOperationException: Service request failed. Status: 404 (Not Found) ---> System.ClientModel.ClientResultException: Service request failed. Status: 404
When I took a look at the request URI, I noticed that the following URI was used:
I switched back to the original version I was using (v1.17.2) and now I could see that a different URI was used:
Do you notice the difference?
A look at the Semantic Kernel Github repo brought me to the following issue:
.Net: Bug: HTTP 404 - POST /chat/completions · Issue #8525 · microsoft/semantic-kernel (github.com)
It seems that it is related to the OpenAI version in use. A fix is to stay a little bit longer on the v1.17.2 version until a new release with the following fix is available:
More information
.Net: Bug: HTTP 404 - POST /chat/completions · Issue #8525 · microsoft/semantic-kernel (github.com)