IOllamaResource

Interface
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1
interface IOllamaResource {
addHuggingFaceModel(
name: string,
modelName: string): OllamaModelResource;
addModel(modelName: string): OllamaModelResource;
addNamedModel(
name: string,
modelName: string): OllamaModelResource;
withOpenWebUI(configureContainer?: (obj: OpenWebUIResource) => Promise<void>, containerName?: string): IOllamaResource;
}

Methods

methodaddHuggingFaceModelbuilder
Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
addHuggingFaceModel(
name: string,
modelName: string): OllamaModelResource
namestringThe name of the resource.
modelNamestringThe name of the LLM from Hugging Face in GGUF format to download on initial startup.
OllamaModelResource
methodaddModelbuilder
Adds a model to the Ollama resource.
addModel(modelName: string): OllamaModelResource
modelNamestringThe name of the LLM to download on initial startup.
OllamaModelResource
methodaddNamedModelbuilder
Adds a model to the Ollama resource.
addNamedModel(
name: string,
modelName: string): OllamaModelResource
namestringThe name of the resource.
modelNamestringThe name of the LLM to download on initial startup.
OllamaModelResource
methodwithOpenWebUIbuilder
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
configureContainer(obj: OpenWebUIResource) => Promise<void>optionalConfiguration callback for Open WebUI container resource.
containerNamestringoptionalThe name of the container (Optional).
IOllamaResource