OllamaResource
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.
AddHuggingFaceModel( name string, modelName string,) OllamaModelResourceParameters
namestringThe name of the resource.modelName stringThe name of the LLM from Hugging Face in GGUF format to download on initial startup.Returns
OllamaModelResource A reference to the I.
Returns a handle; failures surface later via Err().
AddModel(modelName string) OllamaModelResourceParameters
modelName stringThe name of the LLM to download on initial startup.Returns
OllamaModelResource A reference to the I.
Returns a handle; failures surface later via Err().
AddNamedModel( name string, modelName string,) OllamaModelResourceParameters
namestringThe name of the resource.modelName stringThe name of the LLM to download on initial startup.Returns
OllamaModelResource A reference to the I.
Returns a handle; failures surface later via Err().
WithOpenWebUI(options ...*WithOpenWebUIOptions) OllamaResourceParameters
options...*WithOpenWebUIOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithOpenWebUIOptions argument.
ConfigureContainer func(obj OpenWebUIResource) callbackConfiguration callback for Open WebUI container resource.ContainerName *stringThe name of the container (Optional).Returns
OllamaResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This interface applies to the following types: