Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddNamedModel

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

Signature

methodAddNamedModelbuilder
Adds a model to the Ollama resource.
AddNamedModel(
name string,
modelName string,
) OllamaModelResource
namestringThe name of the resource.
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: