Skip to content
Docs Try Aspire
Docs Try

addOllama

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

Signature

method addOllama builder
Adds an Ollama container resource to the application model.
addOllama(
name: string,
port?: number): OllamaResource
name string
port number optional
OllamaResource

Applies to

This method applies to the following types: