Azure / azure-sdk-for-net

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

Open alexmg opened 1 week ago

alexmg commented 1 week ago

Library name and version

Azure.AI.OpenAI 2.0.0-beta.5

Describe the bug

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:

Environment

No response

github-actions[bot] commented 1 week ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @ralph-msft @trrwilson.