Class HttpOnnxModelSourceOptions
How HttpOnnxModelSource fetches. BaseAddress and UrlTemplate together are the ONLY place a Hugging Face URL is constructed - nothing else in this suite concatenates one - so a consumer pointing at a mirror or a corporate proxy changes exactly these two properties.
public sealed class HttpOnnxModelSourceOptions
- Inheritance
-
HttpOnnxModelSourceOptions
- Inherited Members
Properties
- AllowDownload
False turns a missing model into ModelNotProvisioned instead of a download - the switch an app flips on cellular.
- BaseAddress
The host every download is resolved against.
- BearerToken
A Hub token, for a gated repo.
- BodyTimeout
The body's own budget.
HttpClient.Timeoutstops applying once the response headers are read, so without this a stalled body hangs forever.
- FreeDiskMarginBytes
Headroom kept free on the volume, on top of the bytes still to fetch.
- MaxAttempts
Total attempts per file, including the first. Backoff is exponential with jitter.
- UrlTemplate
{repo}/resolve/{revision}/{path}. The three placeholders are positional-by-name, and{revision}is filled from the manifest's pinned commit SHA, never"main".