AskAsync .NET incompatibility with Azure.AI.OpenAI 1.0.0-beta.10
johnnyreilly opened this issue · comments
Trying to use IKernelMemory.AskAsync
with Azure.AI.OpenAI 1.0.0-beta.10:
<PackageReference Include="Azure.AI.OpenAI" Version="1.0.0-beta.10" />
Results in errors like this:
[BE] System.MissingMethodException: Method not found: 'System.Collections.Generic.IList`1<Azure.AI.OpenAI.ChatMessage> Azure.AI.OpenAI.ChatCompletionsOptions.get_Messages()'.
[BE] at Microsoft.KernelMemory.AI.AzureOpenAI.AzureTextGeneration.GenerateTextAsync(String prompt, TextGenerationOptions options, CancellationToken cancellationToken)+MoveNext()
[BE] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
[BE] at Microsoft.KernelMemory.AI.AzureOpenAI.AzureTextGeneration.GenerateTextAsync(String prompt, TextGenerationOptions options, CancellationToken cancellationToken)+System.IAsyncDisposable.DisposeAsync()
[BE] at Microsoft.KernelMemory.Search.SearchClient.AskAsync(String index, String question, ICollection`1 filters, Double minRelevance, CancellationToken cancellationToken)
@johnnyreilly KM inherits the package from SK, which is currently using beta9, see https://github.com/microsoft/semantic-kernel/blob/main/dotnet/Directory.Packages.props. See also Please see microsoft/semantic-kernel#3972. The next RC will have the more recent dependency.
Similar issue with 1.0.0-beta.11
by the looks
KM updated, SK v1, using OpenAI 1.0.0-beta.12. Since KM inherits the library from SK, it's probably faster reporting these issues on SK repo at https://github.com/microsoft/semantic-kernel/issues