10 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (10)
OllamaChatClientIntegrationTests.cs (1)
18
new
OllamaChatClient
(endpoint, "llama3.1") :
OllamaChatClientTests.cs (9)
25
Assert.Throws<ArgumentNullException>("endpoint", () => new
OllamaChatClient
(null!));
26
Assert.Throws<ArgumentException>("modelId", () => new
OllamaChatClient
(new("http://localhost"), " "));
32
using OllamaChatClient client =
new
(new("http://localhost"));
58
using IChatClient chatClient = new
OllamaChatClient
(endpoint, model);
97
using OllamaChatClient client =
new
(new("http://localhost:11434"), "llama3.1", httpClient);
155
using IChatClient client = new
OllamaChatClient
(new("http://localhost:11434"), "llama3.1", httpClient);
241
using IChatClient client = new
OllamaChatClient
(new("http://localhost:11434"), httpClient: httpClient);
345
using IChatClient client = new
OllamaChatClient
(new("http://localhost:11434"), "llama3.1", httpClient)
437
using IChatClient client = new
OllamaChatClient
(new("http://localhost:11434"), "llama3.1", httpClient)
5 references to OllamaChatClient
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
32
/// <summary>Initializes a new instance of the <see cref="
OllamaChatClient
"/> class.</summary>
Microsoft.Extensions.AI.Ollama.Tests (4)
OllamaChatClientTests.cs (4)
32
using
OllamaChatClient
client = new(new("http://localhost"));
34
Assert.Same(client, client.GetService<
OllamaChatClient
>());
48
Assert.Same(client, pipeline.GetService<
OllamaChatClient
>());
97
using
OllamaChatClient
client = new(new("http://localhost:11434"), "llama3.1", httpClient);