Skip to content
Docs Try Aspire
Docs Try

addOllamaLocal

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

Signature

method addOllamaLocal builder
Adds an Ollama executable resource to the application model.
addOllamaLocal(
name: string,
port?: number,
targetPort?: number): OllamaExecutableResource
name string
port number optional
targetPort number optional
OllamaExecutableResource

Applies to

This method applies to the following types: