CommunityToolkit.Aspire.Hosting.Ollama
📦 CommunityToolkit.Aspire.Hosting.Ollamav13.6.1Import path
apphost/modules/aspire10Functions
7Types
7 types, 10 functions and 21 members
Handles
Enums
Functions
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource
method
WithDataVolumebuilderAdds a data volume to the Ollama container.
WithDataVolume(options ...*WithDataVolumeOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourcemethod
WithGPUSupportbuilderAdds GPU support to the Ollama container.
WithGPUSupport(options ...*WithGPUSupportOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourceDistributedApplicationBuilder
method
AddOllamabuilderAdds an Ollama container resource to the application model.
AddOllama(name string, options ...*AddOllamaOptions) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourcemethod
AddOllamaLocalbuilderAdds an Ollama executable resource to the application model.
AddOllamaLocal(name string, options ...*AddOllamaLocalOptions) OllamaExecutableResourceOllamaResource
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
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(options ...*WithOpenWebUIOptions) OllamaResourceOpenWebUIResource
method
WithDataVolumebuilderAdds a data volume to the Open WebUI container.
WithDataVolume(options ...*WithDataVolumeOptions) OpenWebUIResourcemethod
WithHostPortbuilderConfigures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
WithHostPort(port *float64) OpenWebUIResource