Skip to content
1 min read · 86 words

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

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