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); }