Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/provider / adapters/vercel / VercelAdapterOptions

Interface: VercelAdapterOptions

Defined in: packages/provider/src/adapters/vercel.ts:143

Stable

Options accepted by vercelAdapter.

Properties

PropertyModifierTypeDescriptionDefined in
capabilities?readonlyPartial<ProviderCapabilities>Capability declaration. The adapter merges these on top of a conservative defaults table (streaming: true, toolCalling: true, multimodal: true, …); supply explicit values to narrow them.packages/provider/src/adapters/vercel.ts:154
name?readonlystringFully-qualified provider name, used for span / log labelling. Defaults to ${model.provider}-${model.modelId}.packages/provider/src/adapters/vercel.ts:148
runtimeOverrides?readonlyVercelRuntimeOverridesRuntime override for the AI SDK functions. When unset, the adapter lazily await import('ai') on first call. Test suites pass a fixture-driven implementation directly.packages/provider/src/adapters/vercel.ts:160
timeoutMs?readonlynumberOpt-in deadline in milliseconds. Streaming: bounds the time to the FIRST chunk (the timer is cleared once the stream produces); generate: bounds the whole call - the SDK owns the transport, so headers are not observable and time-to-response scoping is impossible. On expiry the adapter throws ProviderHttpError{ status: 0 } (errorKind: 'transient', message request timed out ...), the same shape the baseUrl adapters throw, so withRetry / withFallback treat a hung SDK call exactly like a hung HTTP server. A caller abort via req.signal still surfaces as finishReason: 'aborted', never as a timeout. Unset or 0 = no adapter-level deadline (unlike the HTTP adapters there is no default: a whole-call deadline would break long generate calls if it defaulted on).packages/provider/src/adapters/vercel.ts:176