Skip to content
Docs Try Aspire
Docs Try

addHuggingFaceModel

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface OllamaExecutableResource {
// ... omitted for brevity
addHuggingFaceModel(
name: string,
modelName: string): OllamaModelResource;
}

Signature

method addHuggingFaceModel builder
Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
addHuggingFaceModel(
name: string,
modelName: string): OllamaModelResource
name string
modelName string
OllamaModelResource

Applies to

This method applies to the following types: