Skip to content
DocsTry Aspire
DocsTry

IOllamaResource.addHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface IOllamaResource {
// ... omitted for brevity
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
namestring
modelNamestring
OllamaModelResource

Defined on

This method is defined on the following type: