10 references to 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)