Method AddHuggingFaceModelSource
AddHuggingFaceModelSource(EdgeBuilder, Action<HttpOnnxModelSourceOptions>?)
Registers the resumable, verified HTTP source.
public static EdgeBuilder AddHuggingFaceModelSource(this EdgeBuilder builder, Action<HttpOnnxModelSourceOptions>? configure = null)
Parameters
builderEdgeBuilderThe Qavren.Edge builder.
configureAction<HttpOnnxModelSourceOptions>Optional fetch options - a mirror, a proxy, a token, or no downloads at all.
Returns
- EdgeBuilder
The same builder.
Remarks
The HttpClient is registered with TryAddSingleton, so a consumer who has
already registered their own - with a proxy handler, or a pinned certificate - keeps it.
Microsoft.Extensions.Http is deliberately NOT a dependency: a transitive DI-and-Polly
stack in a mobile embedding package, to replace one client and forty lines of bounded retry,
is a bad trade for consumers.