Skip to content
DocsTry Aspire
DocsTry

IOllamaResource.addModel

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
interface IOllamaResource {
// ... omitted for brevity
addModel(modelName: string): OllamaModelResource;
}

Signature

methodaddModelbuilder
Adds a model to the Ollama resource.
addModel(modelName: string): OllamaModelResource
modelNamestring
OllamaModelResource

Defined on

This method is defined on the following type: