Fix unit test of GetChatCompletions_Returns_RoleDialogModel

This commit is contained in:
Haiping Chen 2024-01-14 04:08:34 -06:00
parent e456cdb83a
commit a2751e9baf

View file

@ -27,7 +27,7 @@ namespace BotSharp.Plugin.SemanticKernel.Tests
}
[Fact]
public void GetChatCompletions_Returns_RoleDialogModel()
public async void GetChatCompletions_Returns_RoleDialogModel()
{
// Arrange
var agent = new Agent();
@ -53,7 +53,7 @@ namespace BotSharp.Plugin.SemanticKernel.Tests
// Act
var result = _provider.GetChatCompletions(agent, conversations);
var result = await _provider.GetChatCompletions(agent, conversations);
// Assert
Assert.IsType<RoleDialogModel>(result);