本页还没有译文
本页 6 段还没译成한국어,下面显示的是英文原文。AI_InvalidDataContentError
还没翻译译自英文(ai-sdk.dev)本页 6 段都还没译
This error occurs when the data content provided in a multi-modal message part is invalid. Check out the prompt examples for multi-modal messages .
Properties
content: The invalid content valuecause: The underlying error that caused this error (optional)message: The error message describing the expected and received content types (optional, auto-generated)
Checking for this Error
You can check if an error is an instance of AI_InvalidDataContentError using:
import { InvalidDataContentError } from 'ai';
if (InvalidDataContentError.isInstance(error)) {
// Handle the error
}AI 翻译查看英文原文