Skip to content
DocsTry Aspire
DocsTry

addOllama

Method
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0
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
namestring
portnumberoptional
OllamaResource

Applies to

This method applies to the following types: