Skip to main content

AI_UnsupportedFunctionalityError

还没翻译译自英文(ai-sdk.dev)本页 6 段都还没译

This error occurs when functionality is not supported.

Properties

  • functionality: The name of the unsupported functionality
  • message: The error message (optional, auto-generated from functionality)

Checking for this Error

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

import { UnsupportedFunctionalityError } from 'ai';

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