Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 436 Bytes

ai-load-api-key-error.mdx

File metadata and controls

24 lines (16 loc) · 436 Bytes
title description
AI_LoadAPIKeyError
Learn how to fix AI_LoadAPIKeyError

AI_LoadAPIKeyError

This error occurs when API key is not loaded successfully.

Properties

  • message: The error message

Checking for this Error

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

import { LoadAPIKeyError } from 'ai';

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