title | description |
---|---|
AI_LoadAPIKeyError |
Learn how to fix AI_LoadAPIKeyError |
This error occurs when API key is not loaded successfully.
message
: The error message
You can check if an error is an instance of AI_LoadAPIKeyError
using:
import { LoadAPIKeyError } from 'ai';
if (LoadAPIKeyError.isInstance(error)) {
// Handle the error
}