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

EmbeddingModality.md

15 lines440 Bytes

type EmbeddingModality = "text" | "image";

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

Input modalities an embedding model can accept. Unlike MediaPromptModality, 'text' is listed explicitly because text-only embedding models are the common case and the modality list drives compile-time narrowing of EmbeddingInputItem.