To anyone else finding this issue later, I had an issue with always getting a "HTTP 404 Resource not found" error specifically after upgrading to the "Azure.AI.OpenAI" Nuget package version "2.0.0-beta.5". In the new version of the Nuget package, I was trying to outright create a new AssistantClient
and passing in my endpoint and API key. But apparently, you have to first create an AzureOpenAIClient
, then create an AssistantClient
(or whatever other client you need), like this:
var azureOpenAIClient = new AzureOpenAIClient(myEndpointUri, myApiKey);
var assistantClient = azureOpenAIClient.GetAssistantClient();
var chatClient = azureOpenAIClient.GetChatClient("gpt-4o");