Skip to content
DocsTry Aspire
DocsTry

addOllamaLocal

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

Signature

methodaddOllamaLocalbuilder
Adds an Ollama executable resource to the application model.
addOllamaLocal(
name: string,
port?: number,
targetPort?: number): OllamaExecutableResource
namestring
portnumberoptional
targetPortnumberoptional
OllamaExecutableResource

Applies to

This method applies to the following types: