Skip to content
DocsTry Aspire
DocsTry

CommunityToolkit.Aspire.Hosting.Ollama

📦 CommunityToolkit.Aspire.Hosting.Ollamav13.4.0
10Functions
7Types

Types

Functions

methodaddHuggingFaceModelbuilder
Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
addHuggingFaceModel(name: string, modelName: string): OllamaModelResource
methodaddModelbuilder
Adds a model to the Ollama resource.
addModel(modelName: string): OllamaModelResource
methodaddNamedModelbuilder
Adds a model to the Ollama resource.
addNamedModel(name: string, modelName: string): OllamaModelResource
methodaddOllamabuilder
Adds an Ollama container resource to the application model.
addOllama(name: string, port?: number): OllamaResource
methodaddOllamaLocalbuilder
Adds an Ollama executable resource to the application model.
addOllamaLocal(name: string, port?: number, targetPort?: number): OllamaExecutableResource
methodwithDataVolumebuilder
Adds a data volume to the Ollama container.
withDataVolume(name?: string, isReadOnly?: boolean): OllamaResource
methodwithDataVolumebuilder
Adds a data volume to the Open WebUI container.
withDataVolume(name?: string, isReadOnly?: boolean): OpenWebUIResource
methodwithGPUSupportbuilder
Adds GPU support to the Ollama container.
withGPUSupport(vendor?: OllamaGpuVendor): OllamaResource
methodwithHostPortbuilder
Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): OpenWebUIResource
methodwithOpenWebUIbuilder
Adds an Open WebUI container to the application model for administering Ollama. This version of the package defaults to the main tag of the Open WebUI container image.
withOpenWebUI(configureContainer?: (obj: OpenWebUIResource) => Promise<void>, containerName?: string): IOllamaResource

Enums