TanStack

ModelInputModalitiesByName

Type Alias: ModelInputModalitiesByName

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

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

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.