12 instantiations of OllamaChatClient
Microsoft.Extensions.AI.Ollama.Tests (12)
OllamaChatClientIntegrationTests.cs (2)
18new OllamaChatClient(endpoint, "llama3.1") : 98using var chatClient = new OllamaChatClient(endpoint, modelId: "inexistent-model");
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); 113using OllamaChatClient client = new("http://localhost:11434", "llama3.1", httpClient); 171using IChatClient client = new OllamaChatClient("http://localhost:11434", "llama3.1", httpClient); 258using IChatClient client = new OllamaChatClient("http://localhost:11434", httpClient: httpClient); 362using IChatClient client = new OllamaChatClient("http://localhost:11434", "llama3.1", httpClient) 454using 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)
98using var chatClient = new OllamaChatClient(endpoint, modelId: "inexistent-model");
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>()); 113using OllamaChatClient client = new("http://localhost:11434", "llama3.1", httpClient);