Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddModel

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

Signature

methodAddModelbuilder
Adds a model to the Ollama resource.
AddModel(modelName string) OllamaModelResource
modelNamestringThe name of the LLM 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: