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.
17 lines (14 loc) • 379 B
text/typescript
import type { ModelMessage } from '@ai-sdk/provider-utils';
/**
* Metadata for a language model request.
*/
export type LanguageModelRequestMetadata = {
/**
* 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;
};