OllamaResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding Ollama resources to the application model.
namespace Aspire.Hosting;
public static class OllamaResourceBuilderExtensions{ // ...}10 members
Methods10
Section titled MethodsIResourceBuilder<OllamaModelResource> Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
IResourceBuilder<OllamaModelResource> Adds a model to the Ollama resource.
IResourceBuilder<OllamaModelResource> Adds a model to the Ollama resource.
IResourceBuilder<OllamaResource> Adds an Ollama container resource to the application model.
IResourceBuilder<OllamaExecutableResource> Adds an Ollama executable resource to the application model.
IResourceBuilder<OllamaResource> Adds a data volume to the Ollama container.
IResourceBuilder<OpenWebUIResource> Adds a data volume to the Open WebUI container.
IResourceBuilder<OllamaResource> Adds GPU support to the Ollama container.
IResourceBuilder<OpenWebUIResource> Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
WithOpenWebUI(IResourceBuilder<T>, Action<IResourceBuilder<OpenWebUIResource>>, string?) extensionats exportIResourceBuilder<T> 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.