Provides extension methods and resource definitions for the Aspire AppHost to support running Ollama containers with support for downloading a model on startup.
It also provides support for running Open WebUI to interact with the Ollama container.
In your AppHost project, install the package using the following command:
dotnet add package CommunityToolkit.Aspire.Hosting.Ollama
Then, in the Program.cs file of AppHost, define an Ollama resource, then call AddOllama:
var ollama = builder.AddOllama("ollama")
.WithModel("phi3")
.WithOpenWebUI();https://learn.microsoft.com/dotnet/aspire/community-toolkit/ollama