Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ModelInputModalitiesByName.md

14 lines512 Bytes

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

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

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.