Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddNamedHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
func (StableDiffusionCppResource) AddNamedHuggingFaceModel(
name string,
repository string,
fileName string,
options ...*AddNamedHuggingFaceModelOptions,
) StableDiffusionCppModelResource

Signature

methodAddNamedHuggingFaceModelbuilder
Adds a named Hugging Face model that is downloaded before the container starts.
AddNamedHuggingFaceModel(
name string,
repository string,
fileName string,
options ...*AddNamedHuggingFaceModelOptions,
) StableDiffusionCppModelResource
namestringThe child model resource name.
repositorystringThe Hugging Face repository identifier.
fileNamestringThe model file path within the repository.
options...*AddNamedHuggingFaceModelOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddNamedHuggingFaceModelOptions argument.

Revision*stringThe repository revision. Defaults to main.
StableDiffusionCppModelResource

A builder for the child model resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: