Skip to content

ModelInputModalitiesByName

ts
type ModelInputModalitiesByName = Record<string, ReadonlyArray<MediaPromptModality>>;

Defined in: packages/ai/src/types.ts:2335

Per-model map from model name to the prompt modalities it accepts, used as an adapter type parameter (TModelInputModalitiesByName). Models absent from the map fall back to the unconstrained MediaPrompt.