From 1056e13414ca747a62050904e077f3e9640d1be2 Mon Sep 17 00:00:00 2001 From: xbotter Date: Fri, 17 Nov 2023 22:21:43 +0800 Subject: [PATCH] fix examples --- LLama.Examples/Examples/SemanticKernelChat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LLama.Examples/Examples/SemanticKernelChat.cs b/LLama.Examples/Examples/SemanticKernelChat.cs index 284237f0..da5eb5ce 100644 --- a/LLama.Examples/Examples/SemanticKernelChat.cs +++ b/LLama.Examples/Examples/SemanticKernelChat.cs @@ -49,7 +49,7 @@ namespace LLama.Examples.Examples /// private static Task MessageOutputAsync(Microsoft.SemanticKernel.AI.ChatCompletion.ChatHistory chatHistory) { - var message = chatHistory.Messages.Last(); + var message = chatHistory.Last(); Console.WriteLine($"{message.Role}: {message.Content}"); Console.WriteLine("------------------------");