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

# Variable: E\_UNSUPPORTED\_MEDIA\_MODALITY

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

Defined in: [batteries/llm/openai\_chat\_completions/exceptions.ts:128](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/llm/openai_chat_completions/exceptions.ts#L128)

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

## Remarks

Today only `kind: 'video'` triggers this — Chat Completions natively supports `image`,
`audio`, and `document` content blocks but has no video block. Consumers can opt out of the
throw by switching to `'fallback-stash'` or `'synthetic-description'` (see
[@nhtio/adk/batteries/llm/openai\_chat\_completions/types!UnsupportedMediaPolicy](../../types/type-aliases/UnsupportedMediaPolicy.md)).

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