---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/exceptions/variables/E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY.md
description: >-
  Raised when a {@link @nhtio/adk!Media} instance whose modality cannot be
  natively represented in the Ollama `/api/chat` wire format reaches the adapter
  under `unsupportedMediaPolicy: 'throw'`.
---

# Variable: E\_OLLAMA\_UNSUPPORTED\_MEDIA\_MODALITY

```ts
const E_OLLAMA_UNSUPPORTED_MEDIA_MODALITY: CreatedException<
  [string, string, string]
>;
```

Defined in: [batteries/llm/ollama/exceptions.ts:141](https://github.com/NHTIO/ADK/blob/v1.20260609.0/src/batteries/llm/ollama/exceptions.ts#L141)

Raised when a [@nhtio/adk!Media](../../../../../common/classes/Media.md) instance whose modality cannot be natively represented in
the Ollama `/api/chat` wire format reaches the adapter under `unsupportedMediaPolicy: 'throw'`.

## Remarks

Native `/api/chat` supports only base64 `images[]` — it has no audio, document, or video
representation — so this triggers for every non-image modality (a wider set than the OpenAI
battery, which natively supports audio and document blocks). Consumers can opt out of the throw
by switching to `'fallback-stash'` or `'synthetic-description'`.

Printf args: `[kind, mimeType, filename]`.
