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

# Variable: E\_OPENAI\_RESPONSES\_UNSUPPORTED\_MEDIA\_MODALITY

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

Defined in: [src/batteries/llm/openai\_responses/exceptions.ts:135](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/llm/openai_responses/exceptions.ts#L135)

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

## Remarks

Today `audio` and `video` trigger this — the Responses input-content union has no audio member
(confirmed against the `openai` SDK's own type definitions) and no video member either. Consumers
can opt out of the throw by switching to `'fallback-stash'` or `'synthetic-description'` (see
[@nhtio/adk/batteries/llm/openai\_responses/types!UnsupportedMediaPolicy](../../../transformers_js/type-aliases/UnsupportedMediaPolicy.md)).

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