This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.26k
stars
4.61k
forks
source link
[BUG] `AddOpenAIClient` missing from `2.0.0-beta` versions of `Azure.AI.OpenAI` #45888
The AddOpenAIClient extension method for IAzureClientFactoryBuilder has been removed in the 2.0.0 versions of the package. I could not find an explicit reference to its intentional removal in the release notes for the 2.0.0-beta versions of the package.
Expected behavior
The AddOpenAIClient should exist in the 2.0.0 package keeping it consistent with other Azure packages that work with Microsoft.Extensions.Azure.
Actual behavior
The AddOpenAIClient has been removed resulting in a CS1061 compiler error for users upgrading from 1.0.0 versions of the package.
Reproduction Steps
Existing code:
Upgrade an existing project that uses the AddOpenAIClient to the 2.0.0-beta.5 package and note the CS1061 compiler error due to the AddOpenAIClient method being removed.
New code:
Add Azure.AI.OpenAI package version 2.0.0-beta.5
Add Microsoft.Extensions.Azure package version 1.7.5
Add a using for the Microsoft.Extensions.Azure namespace
Call the AddAzureClients extension method on an IServiceCollection instance
Note the AddOpenAIClient is not available on the AzureClientFactoryBuilder provided to the AddAzureClients method
Library name and version
Azure.AI.OpenAI 2.0.0-beta.5
Describe the bug
The
AddOpenAIClient
extension method forIAzureClientFactoryBuilder
has been removed in the2.0.0
versions of the package. I could not find an explicit reference to its intentional removal in the release notes for the2.0.0-beta
versions of the package.Expected behavior
The
AddOpenAIClient
should exist in the2.0.0
package keeping it consistent with other Azure packages that work withMicrosoft.Extensions.Azure
.Actual behavior
The
AddOpenAIClient
has been removed resulting in a CS1061 compiler error for users upgrading from1.0.0
versions of the package.Reproduction Steps
Existing code:
Upgrade an existing project that uses the
AddOpenAIClient
to the2.0.0-beta.5
package and note the CS1061 compiler error due to theAddOpenAIClient
method being removed.New code:
Azure.AI.OpenAI
package version2.0.0-beta.5
Microsoft.Extensions.Azure
package version1.7.5
using
for theMicrosoft.Extensions.Azure
namespaceAddAzureClients
extension method on anIServiceCollection
instanceAddOpenAIClient
is not available on theAzureClientFactoryBuilder
provided to theAddAzureClients
methodEnvironment
No response