11 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (11)
OllamaChatClientIntegrationTests.cs (1)
18new OllamaChatClient(endpoint, "llama3.1") :
OllamaChatClientTests.cs (10)
26Assert.Throws<ArgumentNullException>("endpoint", () => new OllamaChatClient((Uri)null!)); 27Assert.Throws<ArgumentException>("modelId", () => new OllamaChatClient("http://localhost", " ")); 33using OllamaChatClient client = new("http://localhost", "model"); 46using OllamaChatClient client = new("http://localhost"); 73using IChatClient chatClient = new OllamaChatClient(endpoint, model); 112using OllamaChatClient client = new("http://localhost:11434", "llama3.1", httpClient); 170using IChatClient client = new OllamaChatClient("http://localhost:11434", "llama3.1", httpClient); 256using IChatClient client = new OllamaChatClient("http://localhost:11434", httpClient: httpClient); 360using IChatClient client = new OllamaChatClient("http://localhost:11434", "llama3.1", httpClient) 452using 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)
33using OllamaChatClient client = new("http://localhost", "model"); 46using OllamaChatClient client = new("http://localhost"); 48Assert.Same(client, client.GetService<OllamaChatClient>()); 63Assert.Same(client, pipeline.GetService<OllamaChatClient>()); 112using OllamaChatClient client = new("http://localhost:11434", "llama3.1", httpClient);