Class OllamaModelSearch
- Namespace
- JD.AI.Core.Providers.ModelSearch
- Assembly
- JD.AI.Core.dll
Searches for models available through a local Ollama instance.
public sealed class OllamaModelSearch : IRemoteModelSearch
- Inheritance
-
OllamaModelSearch
- Implements
- Inherited Members
Constructors
OllamaModelSearch(HttpClient)
public OllamaModelSearch(HttpClient httpClient)
Parameters
httpClientHttpClient
Properties
ProviderName
public string ProviderName { get; }
Property Value
Methods
PullAsync(RemoteModelResult, IProgress<string>?, CancellationToken)
public Task<bool> PullAsync(RemoteModelResult model, IProgress<string>? progress = null, CancellationToken ct = default)
Parameters
modelRemoteModelResultprogressIProgress<string>ctCancellationToken
Returns
SearchAsync(string, CancellationToken)
public Task<IReadOnlyList<RemoteModelResult>> SearchAsync(string query, CancellationToken ct = default)
Parameters
querystringctCancellationToken