Skip to content

Commit

Permalink
Update UT for Seed property
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerBarreto committed Nov 20, 2024
1 parent 22203d9 commit 0695ff7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
}

Expand Down Expand Up @@ -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"]);
}

Expand Down

0 comments on commit 0695ff7

Please sign in to comment.