12 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (12)
OllamaChatClientIntegrationTests.cs (2)
18
new
OllamaChatClient
(endpoint, "llama3.1") :
98
using var chatClient = new
OllamaChatClient
(endpoint, modelId: "inexistent-model");
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);
113
using OllamaChatClient client =
new
("http://localhost:11434", "llama3.1", httpClient);
171
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient);
258
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", httpClient: httpClient);
362
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient)
454
using IChatClient client = new
OllamaChatClient
("http://localhost:11434", "llama3.1", httpClient)
8 references to OllamaChatClient
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (2)
40
/// <summary>Initializes a new instance of the <see cref="
OllamaChatClient
"/> class.</summary>
52
/// <summary>Initializes a new instance of the <see cref="
OllamaChatClient
"/> class.</summary>
Microsoft.Extensions.AI.Ollama.Tests (6)
OllamaChatClientIntegrationTests.cs (1)
98
using
var
chatClient = new OllamaChatClient(endpoint, modelId: "inexistent-model");
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
>());
113
using
OllamaChatClient
client = new("http://localhost:11434", "llama3.1", httpClient);