10 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (10)
OllamaChatClientIntegrationTests.cs (1)
18new OllamaChatClient(endpoint, "llama3.1") :
OllamaChatClientTests.cs (9)
25Assert.Throws<ArgumentNullException>("endpoint", () => new OllamaChatClient(null!)); 26Assert.Throws<ArgumentException>("modelId", () => new OllamaChatClient(new("http://localhost"), " ")); 32using OllamaChatClient client = new(new("http://localhost")); 58using IChatClient chatClient = new OllamaChatClient(endpoint, model); 97using OllamaChatClient client = new(new("http://localhost:11434"), "llama3.1", httpClient); 155using IChatClient client = new OllamaChatClient(new("http://localhost:11434"), "llama3.1", httpClient); 241using IChatClient client = new OllamaChatClient(new("http://localhost:11434"), httpClient: httpClient); 345using IChatClient client = new OllamaChatClient(new("http://localhost:11434"), "llama3.1", httpClient) 437using 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)
32using OllamaChatClient client = new(new("http://localhost")); 34Assert.Same(client, client.GetService<OllamaChatClient>()); 48Assert.Same(client, pipeline.GetService<OllamaChatClient>()); 97using OllamaChatClient client = new(new("http://localhost:11434"), "llama3.1", httpClient);