Table of Contents

Method AddHuggingFaceModelSource

Namespace
Qavren.Edge.Onnx
Assembly
Qavren.Edge.Onnx.dll

AddHuggingFaceModelSource(EdgeBuilder, Action<HttpOnnxModelSourceOptions>?)

Registers the resumable, verified HTTP source.

public static EdgeBuilder AddHuggingFaceModelSource(this EdgeBuilder builder, Action<HttpOnnxModelSourceOptions>? configure = null)

Parameters

builder EdgeBuilder

The Qavren.Edge builder.

configure Action<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.