OllamaResource

Interfacemarker
📦 CommunityToolkit.Aspire.Hosting.Ollama v13.6.1

Represents an Ollama resource.

type OllamaResource interface{}

Methods

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

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

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

methodAddModelbuilder
Adds a model to the Ollama resource.
AddModel(modelName string) OllamaModelResource
modelNamestringThe name of the LLM to download on initial startup.
OllamaModelResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

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

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

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(options ...*WithOpenWebUIOptions) OllamaResource
options...*WithOpenWebUIOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithOpenWebUIOptions argument.

ConfigureContainerfunc(obj OpenWebUIResource)callbackConfiguration callback for Open WebUI container resource.
ContainerName*stringThe name of the container (Optional).
OllamaResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This interface applies to the following types: