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.

6 lines (5 loc) • 245 B
export function isNodeRuntime(): boolean { // Access the optional global directly so Edge bundlers do not treat this // runtime check as an unsupported use of the Node.js process API. return globalThis.process?.release?.name === 'node'; }