OllamaResource.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().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: