Class HuggingFaceModelSearch
- Namespace
- JD.AI.Core.Providers.ModelSearch
- Assembly
- JD.AI.Core.dll
Searches the HuggingFace Hub for text-generation models.
public sealed class HuggingFaceModelSearch : IRemoteModelSearch
- Inheritance
-
HuggingFaceModelSearch
- Implements
- Inherited Members
Constructors
HuggingFaceModelSearch(HttpClient)
public HuggingFaceModelSearch(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