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