CommunityToolkit.Aspire.Hosting.Ollama
📦 CommunityToolkit.Aspire.Hosting.Ollamav13.4.010Functions
7Types
7 types and 21 members
Types
Functions
method
addHuggingFaceModelbuilderAdds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
addHuggingFaceModel(name: string, modelName: string): OllamaModelResourcemethod
addModelbuilderAdds a model to the Ollama resource.
addModel(modelName: string): OllamaModelResourcemethod
addNamedModelbuilderAdds a model to the Ollama resource.
addNamedModel(name: string, modelName: string): OllamaModelResourcemethod
addOllamabuilderAdds an Ollama container resource to the application model.
addOllama(name: string, port?: number): OllamaResourcemethod
addOllamaLocalbuilderAdds an Ollama executable resource to the application model.
addOllamaLocal(name: string, port?: number, targetPort?: number): OllamaExecutableResourcemethod
withDataVolumebuilderAdds a data volume to the Ollama container.
withDataVolume(name?: string, isReadOnly?: boolean): OllamaResourcemethod
withDataVolumebuilderAdds a data volume to the Open WebUI container.
withDataVolume(name?: string, isReadOnly?: boolean): OpenWebUIResourcemethod
withGPUSupportbuilderAdds GPU support to the Ollama container.
withGPUSupport(vendor?: OllamaGpuVendor): OllamaResourcemethod
withHostPortbuilderConfigures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): OpenWebUIResourcemethod
withOpenWebUIbuilderAdds 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