# CommunityToolkit.Aspire.Hosting.Ollama

- Module: `CommunityToolkit.Aspire.Hosting.Ollama`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)
- Functions: `10`
- Types: `7`

## Types

- [IOllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/iollamaresource.md) -- `interface` - 4 members -- Represents an Ollama resource.
- [OllamaExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaexecutableresource.md) -- `handle` - 6 members -- A resource that represents an Ollama executable resource.
- [OllamaGpuVendor](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamagpuvendor.md) -- `handle` - 0 members -- Represents the GPU vendors supported by the application.
- [OllamaModelResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamamodelresource.md) -- `handle` - 3 members -- A resource that represents an ollama model.
- [OllamaResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) -- `handle` - 8 members -- A resource that represents an Ollama container.
- [OpenWebUIResource](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/openwebuiresource.md) -- `handle` - 8 members -- A resource that represents an Open WebUI resource

## Functions

- [addHuggingFaceModel](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/addhuggingfacemodel.md) -- `method` -- Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
- [addModel](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/addmodel.md) -- `method` -- Adds a model to the Ollama resource.
- [addNamedModel](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/addnamedmodel.md) -- `method` -- Adds a model to the Ollama resource.
- [addOllama](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/addollama.md) -- `method` -- Adds an Ollama container resource to the application model.
- [addOllamaLocal](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/addollamalocal.md) -- `method` -- Adds an Ollama executable resource to the application model.
- [withDataVolume](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/withdatavolume.md) -- `method` -- Adds a data volume to the Ollama container.
- [withDataVolume](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/withdatavolume.md) -- `method` -- Adds a data volume to the Open WebUI container.
- [withGPUSupport](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/withgpusupport.md) -- `method` -- Adds GPU support to the Ollama container.
- [withHostPort](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/withhostport.md) -- `method` -- Configures the host port that the Open WebUI resource is exposed on instead of using randomly assigned port.
- [withOpenWebUI](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/withopenwebui.md) -- `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.

## Enums

- [OllamaGpuVendor](/reference/api/typescript/communitytoolkit.aspire.hosting.ollama/ollamagpuvendor.md) -- `enum` - 2 values -- Represents the GPU vendors supported by the application.
