Chat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
G


using var api = new OllamaApiClient();

await apiClient.Models.PullModelAsync("llama3.2").EnsureSuccessAsync();


var chat = api.Chat("llama3.2");
var message = await chat.SendAsync("answer 5 random words");

Console.WriteLine(message.Content);