AddStableDiffusionCpp
Method
func (DistributedApplicationBuilder) AddStableDiffusionCpp( name string, options ...*AddStableDiffusionCppOptions,) StableDiffusionCppResourceSignature
method
AddStableDiffusionCpp builderAdds a stable-diffusion.cpp container resource using an official image.
AddStableDiffusionCpp( name string, options ...*AddStableDiffusionCppOptions,) StableDiffusionCppResourceParameters
namestringThe resource name.options...*AddStableDiffusionCppOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddStableDiffusionCppOptions argument.
ImageVariant *StableDiffusionCppImageVariant The official image variant to use.Port*float64An optional host port. Aspire assigns one when omitted.ModelsDirectory *stringAn optional host directory used for models. Defaults to .stable-diffusion-cpp/{name}/models under the AppHost directory.Returns
StableDiffusionCppResource A builder for the stable-diffusion.cpp resource.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder