AddOllama

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
func (DistributedApplicationBuilder) AddOllama(
name string,
options ...*AddOllamaOptions,
) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

Signature

methodAddOllamabuilder
Adds an Ollama container resource to the application model.
AddOllama(
name string,
options ...*AddOllamaOptions,
) CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
options...*AddOllamaOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddOllamaOptions argument.

Port*float64An optional fixed port to bind to the Ollama container. This will be provided randomly by Aspire if not set.
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder