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.

20 lines (16 loc) • 503 B
import type { ModelMessage } from '@ai-sdk/provider-utils'; /** * Metadata for a language model request. */ export type LanguageModelRequestMetadata = { /** HTTP origin used for this request, without URL credentials, paths, queries or fragments. */ readonly url?: string; /** * The input messages that were sent to the model for this step. */ readonly messages?: Array<ModelMessage>; /** * Request HTTP body that was sent to the provider API. */ readonly body?: unknown; };