Skip to content

.Net: Bug: Does SK 1.x .NET work with Azure OpenAI beta 2? #7378

Description

@markjbrown

Describe the bug
I am upgrading an existing project using SK 1.4 and Azure OpenAI .NET SDK to 2.0.0-beta.2. When I did the update, I started getting this error below. Updating to SDK 1.6 did not fix the issue. I've tried everything I can think of. Not finding a way to get this to compile.

Error (active) CS7069 Reference to type 'OpenAIClient' claims it is defined in 'Azure.AI.OpenAI', but it could not be found

Does this combination work? I cannot find any definitive answer in GH Issues. Seems odd to me that it's complaining about an OpenAI client when this is calling AddAzureOpenAIChatCompletion().

To Reproduce
Steps to reproduce the behavior:

  1. Update an existing .NET SK project to Azure Open AI 2.0.0-beta.2
  2. Compile

Screenshots
Attached to issue.
image

Platform

  • OS: Windows
  • IDE: Visual Studio
  • Language: C#
  • Source: Nuget versions, "Azure.AI.OpenAI" Version="2.0.0-beta.2", "Microsoft.SemanticKernel" Version="1.16.0", "Microsoft.SemanticKernel.Plugins.Core" Version="1.12.0-alpha"

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions