AI_InvalidDataContent
This error occurs when invalid data content is provided.
Properties
content
: The invalid content valuemessage
: The error messagecause
: The cause of the error
Checking for this Error
You can check if an error is an instance of AI_InvalidDataContent
using:
import { InvalidDataContent } from 'ai';
if (InvalidDataContent.isInstance(error)) { // Handle the error}