Skip to content
1 min read · 79 words

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

Raised when a @nhtio/adk!Media 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).

Printf args: [kind, mimeType, filename].