AddHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
func (OllamaResource) AddHuggingFaceModel(
name string,
modelName string,
) OllamaModelResource

Signature

methodAddHuggingFaceModelbuilder
Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
AddHuggingFaceModel(
name string,
modelName string,
) OllamaModelResource
namestringThe name of the resource.
modelNamestringThe name of the LLM from Hugging Face in GGUF format to download on initial startup.
OllamaModelResource

A reference to the IResourceBuilder.

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

Applies to

This method applies to the following types: