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.

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