Interface VercelAiModelDescription

interface VercelAiModelDescription {
    apiKey: undefined | string | true;
    enableStreaming: boolean;
    id: string;
    model: string;
    provider?: VercelAiProvider;
    supportsStructuredOutput: boolean;
    url?: string;
}

Properties

apiKey: undefined | string | true

The key for the model. If 'true' is provided the global provider API key will be used.

enableStreaming: boolean

Controls whether streaming is enabled for this model.

id: string

The identifier of the model which will be shown in the UI.

model: string

The model ID as used by the Vercel AI SDK.

provider?: VercelAiProvider

The provider of the model (openai, anthropic, etc.)

supportsStructuredOutput: boolean

Flag to configure whether the model supports structured output. Default is true.

url?: string

The API base URL where the model is hosted. If not provided the default provider endpoint will be used.