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.25k
stars
4.59k
forks
source link
[BUG] `AzureOpenAIModelFactory` has disappeared in Azure.AI.OpenAI 2.0.0-betas #45623
Library name and version
Azure.AI.OpenAI 2.0.0-beta2
Describe the bug
There was a bug raised previously about the
Azure.AI.OpenAI
package not being conformant with the Azure SDK guidelines and not supporting mocking.36462 was raised and it was resolved by introducing
AzureOpenAIModelFactory
.In the 2.0.0-beta versions of the package, the constructors are again internal and not mockable except for when using reflection.
Expected behavior
AzureOpenAIModelFactory
is available and allows instantiating custom instances of the various classes used for testing.Actual behavior
AzureOpenAIModelFactory
is missing.Reproduction Steps
Try to use
AzureOpenAIModelFactory
- find it is not there :-)Environment
No response