CommunityToolkit.Aspire.Hosting.Ollama
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.4.0 10 Functions
7 Types
7 types and 21 members
Types
Functions
method
addHuggingFaceModel builder Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
addHuggingFaceModel(name: string, modelName: string): OllamaModelResource method
addModel builder Adds a model to the Ollama resource.
addModel(modelName: string): OllamaModelResource method
addNamedModel builder Adds a model to the Ollama resource.
addNamedModel(name: string, modelName: string): OllamaModelResource method
addOllama builder Adds an Ollama container resource to the application model.
addOllama(name: string, port?: number): OllamaResource method
addOllamaLocal builder Adds an Ollama executable resource to the application model.
addOllamaLocal(name: string, port?: number, targetPort?: number): OllamaExecutableResource method
withDataVolume builder Adds a data volume to the Ollama container.
withDataVolume(name?: string, isReadOnly?: boolean): OllamaResource method
withDataVolume builder Adds a data volume to the Open WebUI container.
withDataVolume(name?: string, isReadOnly?: boolean): OpenWebUIResource method
withGPUSupport builder Adds GPU support to the Ollama container.
withGPUSupport(vendor?: OllamaGpuVendor): OllamaResource method
withHostPort builder Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): OpenWebUIResource method
withOpenWebUI builder 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