11 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (11)
OllamaChatClientIntegrationTests.cs (1)
18
new
OllamaChatClient
(endpoint, "llama3.1") :
OllamaChatClientTests.cs (10)
26
Assert.Throws<ArgumentNullException>("endpoint", () => new
OllamaChatClient
((Uri)null!));
27
Assert.Throws<ArgumentException>("modelId", () => new
OllamaChatClient
("http://localhost", " "));
33
using OllamaChatClient client =
new
("http://localhost", "model");
46
using OllamaChatClient client =
new
("http://localhost");
73
using IChatClient chatClient = new
OllamaChatClient
(endpoint, model);
112
using OllamaChatClient client =
new
("http://localhost:11434", "llama3.1", httpClient);
170
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient);
256
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", httpClient: httpClient);
360
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient)
452
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient)
7 references to OllamaChatClient
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (2)
37
/// <summary>Initializes a new instance of the <see cref="
OllamaChatClient
"/> class.</summary>
49
/// <summary>Initializes a new instance of the <see cref="
OllamaChatClient
"/> class.</summary>
Microsoft.Extensions.AI.Ollama.Tests (5)
OllamaChatClientTests.cs (5)
33
using
OllamaChatClient
client = new("http://localhost", "model");
46
using
OllamaChatClient
client = new("http://localhost");
48
Assert.Same(client, client.GetService<
OllamaChatClient
>());
63
Assert.Same(client, pipeline.GetService<
OllamaChatClient
>());
112
using
OllamaChatClient
client = new("http://localhost:11434", "llama3.1", httpClient);