From 93eb885253a5500d310be8fc928abc129400f401 Mon Sep 17 00:00:00 2001 From: mark van tilburg Date: Fri, 1 Dec 2023 08:54:49 +0100 Subject: [PATCH] Update README.md Update example to the latest version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7218230d..af517804 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Console.Write(prompt); // run the inference in a loop to chat with LLM while (prompt != "stop") { - foreach (var text in session.Chat(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List { "User:" } })) + await foreach (var text in session.ChatAsync(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List { "User:" } })) { Console.Write(text); }