Closed rstropek closed 1 month ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.
I can confirm the the problem is gone after upgrading to the new versions of the NuGet packages (Azure.AI.OpenAI
version 2.0.0-beta.4
and OpenAI
version 2.0.0-beta.10
).
Library name and version
Azure.AI.OpenAI 2.0.0-beta.2
Describe the bug
If you follow the documentation at https://www.nuget.org/packages/Azure.AI.OpenAI/2.0.0-beta.2#readme-body-tab, you get HTTP 404 (not found) errors when accessing the Azure OpenAI API (e.g. reading all assistants).
Expected behavior
It should be possible to access the Azure OpenAI API without an error.
Actual behavior
HTTP 404 error when accessing the Azure OpenAI API
Reproduction Steps
Azure.AI.OpenAI
andOpenAI
NuGet packagesendpoint
andapiKey
accordingly):If you run this program, you get a
System.ClientModel.ClientResultException
because of an HTTP 404 error.In order to make it work, you first have to change the endpoint as follows (note the
/openai
at the end). Otherwise, the API tries to HTTP GET the assistants from https://myendpoint.openai.azure.com/assistants instead of https://myendpoint.openai.azure.com/openai/assistants. For me, this is not a critical error. It should just be fixed in the docs.However, the console app still does not work because the API version (which is mandatory in Azure) is not appended to the URLs. This can be fixed e.g. by adding a custom
HttpClientPipelineTransport
that changes the request URI accordingly:After these changes, the program works and it can successfully access Azure OpenAI.
This shouldn't be necessary, should it?
Environment