UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

21 lines (18 loc) 372 B
import type { EmbeddingModelV2, EmbeddingModelV3, EmbeddingModelV4, EmbeddingModelV4Embedding, } from '@ai-sdk/provider'; /** * Embedding model that is used by the AI SDK. */ export type EmbeddingModel = | string | EmbeddingModelV4 | EmbeddingModelV3 | EmbeddingModelV2<string>; /** * Embedding. */ export type Embedding = EmbeddingModelV4Embedding;