microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.21k stars 3.11k forks source link

.Net: Issues when using SK 1.14.1 with Azure.AI.OpenAI 2.0.0-beta-1 #6631

Closed essenbee2 closed 5 days ago

essenbee2 commented 2 months ago

Describe the bug I installed SK 1.14.1 and Azure.AI.OpenAI 2.0.0-beta-1. The following lines of code now have red underlining for the calls to .AddAzureOpenAITextEmbeddingGeneration() and .AddAzureOpenAIChatCompletion():

            kernelBuilder = kernelBuilder.AddAzureOpenAITextEmbeddingGeneration(embeddingModelName, endpoint, tokenCredential ?? new DefaultAzureCredential());
            kernelBuilder = kernelBuilder.AddAzureOpenAIChatCompletion(deployedModelName, endpoint, tokenCredential ?? new DefaultAzureCredential());

The error for both lines in the same and as follows:

image

Expected behaviour SK should work with the AzureOpenAIClient that is part of Azure.AI.OpenAI 2.0.0-beta-1

Platform

trrwilson commented 2 months ago

Thanks, @essenbee2! And sorry for the hassle--this is a pain, but one we're hoping to consolidate into a one-time irritation.

As implied with the major version bump from v1.0.0-beta.17 and v2.0.0-beta.1, the new .NET library will require some migration steps; in that regard, SK is in the same boat as directly using the OpenAI SDK. Please stick with the v1.0.0-beta* libraries until all the dependency integration is complete.

essenbee2 commented 2 months ago

Will do, and thanks :-)

rliberoff commented 2 months ago

Hello,

Do you have any ETA when this will be available? When SK will use the v2.0.0-beta* of Azure OpenAI SDK?

Thank you.

JasonYeMSFT commented 1 month ago

I also wonder if you have an ETA on when the dependency will be upgraded. I come from this issue which is blocking our development. https://github.com/Azure/azure-sdk-for-net/issues/43952 Since there is a new version of the package, I think we should see if the new version has already fixed the issue and then decide on how to fix the issue.

RogerBarreto commented 5 days ago

All those errors are mitigated with our new 1.18.0-rc package with the latest OpenAI Connectors using the latest Azure and OpenAI underlying official SDKs.

Please let us know if you are able to use them for your current scenarios.

We also added a dedicated Migration Guideline in our learn site in here