Skip to content

Commit

Permalink
Merge pull request SciSharp#339 from markvantilburg/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
AsakusaRinne authored Dec 1, 2023
2 parents 884f5ad + 93eb885 commit ac3cc7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> { "User:" } }))
await foreach (var text in session.ChatAsync(prompt, new InferenceParams() { Temperature = 0.6f, AntiPrompts = new List<string> { "User:" } }))
{
Console.Write(text);
}
Expand Down

0 comments on commit ac3cc7c

Please sign in to comment.