AddOllama
Method
func (DistributedApplicationBuilder) AddOllama( name string, options ...*AddOllamaOptions,) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourceSignature
method
AddOllama builderAdds an Ollama container resource to the application model.
AddOllama( name string, options ...*AddOllamaOptions,) CommunityToolkit_Aspire_Hosting_OllamaOllamaResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.options...*AddOllamaOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddOllamaOptions argument.
Port*float64An optional fixed port to bind to the Ollama container. This will be provided randomly by Aspire if not set.Returns
CommunityToolkit_Aspire_Hosting_OllamaOllamaResource A reference to the I.
Returns a handle; failures surface later via Err().
Applies to
This method applies to the following types:
type
DistributedApplicationBuilder