Created
September 21, 2024 11:07
-
-
Save wullemsb/1aca79ce1005f087afafe5763e42bee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chat = new Chat(ollama); | |
while (true) | |
{ | |
Console.Write("User>"); | |
var message = Console.ReadLine(); | |
Console.Write("Assistant>"); | |
await foreach (var answerToken in chat.Send(message)) | |
Console.Write(answerToken); | |
Console.WriteLine(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment