addOllama

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addOllama(
name: string,
port?: number): OllamaResource;
}

Signature

methodaddOllamabuilder
Adds an Ollama container resource to the application model.
addOllama(
name: string,
port?: number): OllamaResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
portnumberoptionalAn optional fixed port to bind to the Ollama container. This will be provided randomly by Aspire if not set.
OllamaResource

Applies to

This method applies to the following types: