Class OllamaDetector
Detects Ollama instances (local and optionally named remote endpoints) and enumerates models.
public sealed class OllamaDetector : IProviderDetector
- Inheritance
-
OllamaDetector
- Implements
- Inherited Members
Constructors
OllamaDetector(ProviderConfigurationManager, string)
public OllamaDetector(ProviderConfigurationManager config, string defaultEndpoint = "http://localhost:11434")
Parameters
configProviderConfigurationManagerdefaultEndpointstring
OllamaDetector(string)
public OllamaDetector(string endpoint = "http://localhost:11434")
Parameters
endpointstring
Properties
ProviderName
public string ProviderName { get; }
Property Value
Methods
BuildKernel(ProviderModelInfo)
public Kernel BuildKernel(ProviderModelInfo model)
Parameters
modelProviderModelInfo
Returns
- Kernel
DetectAsync(CancellationToken)
public Task<ProviderInfo> DetectAsync(CancellationToken ct = default)