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.

26 lines (17 loc) 628 B
--- title: AI_NoOutputGeneratedError description: Learn how to fix AI_NoOutputGeneratedError --- # AI_NoOutputGeneratedError This error is thrown when no LLM output was generated, e.g. because of errors. ## Properties - `message`: The error message (optional, defaults to `'No output generated.'`) - `cause`: The underlying error that caused no output to be generated (optional) ## Checking for this Error You can check if an error is an instance of `AI_NoOutputGeneratedError` using: ```typescript import { NoOutputGeneratedError } from 'ai'; if (NoOutputGeneratedError.isInstance(error)) { // Handle the error } ```