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) • 541 B
text/typescript
import { SharedV3ProviderMetadata } from '@ai-sdk/provider';
import { z } from 'zod/v4';
import { jsonValueSchema } from './json-value';
/**
* Additional provider-specific metadata that is returned from the provider.
*
* This is needed to enable provider-specific functionality that can be
* fully encapsulated in the provider.
*/
export type ProviderMetadata = SharedV3ProviderMetadata;
export const providerMetadataSchema: z.ZodType<ProviderMetadata> = z.record(
z.string(),
z.record(z.string(), jsonValueSchema.optional()),
);