# OllamaResource.WithOpenWebUI

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

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
```

## Signature

```go
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()`.

## Defined on

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

- [OllamaResource](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) -- `marker`

## 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)
