Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 495 Bytes

ai-no-object-generated-error.mdx

File metadata and controls

24 lines (16 loc) · 495 Bytes
title description
AI_NoObjectGeneratedError
Learn how to fix AI_NoObjectGeneratedError

AI_NoObjectGeneratedError

This error occurs when the AI provider fails to generate a parsable object.

Properties

  • message: The error message

Checking for this Error

You can check if an error is an instance of AI_NoObjectGeneratedError using:

import { NoObjectGeneratedError } from 'ai';

if (NoObjectGeneratedError.isInstance(error)) {
  // Handle the error
}