From 0695ff73602084e972448df1c938abb4c6b1f60d Mon Sep 17 00:00:00 2001 From: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:05:22 +0000 Subject: [PATCH] Update UT for Seed property --- .../AI/ServiceConversionExtensionsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/SemanticKernel.UnitTests/AI/ServiceConversionExtensionsTests.cs b/dotnet/src/SemanticKernel.UnitTests/AI/ServiceConversionExtensionsTests.cs index d4dad01050d7..09f1966e2837 100644 --- a/dotnet/src/SemanticKernel.UnitTests/AI/ServiceConversionExtensionsTests.cs +++ b/dotnet/src/SemanticKernel.UnitTests/AI/ServiceConversionExtensionsTests.cs @@ -526,7 +526,7 @@ public async Task AsChatCompletionServiceNonStreamingContentConvertedAsExpected( Assert.Equal(0.5f, actualOptions.FrequencyPenalty); Assert.Equal(0.75f, actualOptions.TopP); Assert.Equal(["hello"], actualOptions.StopSequences); - Assert.Equal(42, actualOptions.AdditionalProperties?.TryGetValue("Seed", out int seed) is true ? seed : 0); + Assert.Equal(42, actualOptions.Seed); Assert.Equal("user123", actualOptions.AdditionalProperties?["User"]); } @@ -621,7 +621,7 @@ public async Task AsChatCompletionServiceStreamingContentConvertedAsExpected() Assert.Equal(0.5f, actualOptions.FrequencyPenalty); Assert.Equal(0.75f, actualOptions.TopP); Assert.Equal(["hello"], actualOptions.StopSequences); - Assert.Equal(42, actualOptions.AdditionalProperties?.TryGetValue("Seed", out int seed) is true ? seed : 0); + Assert.Equal(42, actualOptions.Seed); Assert.Equal("user123", actualOptions.AdditionalProperties?["User"]); }