# WithOpenWebUI

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/go/communitytoolkit.aspire.hosting.ollama.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: [`OllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

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.

## Remarks

See https://openwebui.com for more information about Open WebUI

## Definition

```go
func (OllamaResource) WithOpenWebUI(options ...*WithOpenWebUIOptions) OllamaResource
```

## Parameters

- `options` (`...*WithOpenWebUIOptions`) -- optional settings, see [Options](#options)

## Options

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

- `ConfigureContainer` (`func(obj OpenWebUIResource)`) `callback` -- Configuration callback for Open WebUI container resource.
- `ContainerName` (`*string`) -- The name of the container (Optional).

## Returns

[`OllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) -- A reference to the `IResourceBuilder`.

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

## Applies to

- [`CommunityToolkit_Aspire_Hosting_OllamaOllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/communitytoolkit-aspire-hosting-ollamaollamaresource.md)
- [`OllamaExecutableResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaexecutableresource.md)
