本页还没有译文
本页 7 段还没译成日本語,下面显示的是英文原文。AI_NoSuchModelError
还没翻译译自英文(ai-sdk.dev)本页 7 段都还没译
This error occurs when a model ID is not found.
Properties
modelId: The ID of the model that was not foundmodelType: The type of model ('languageModel','embeddingModel','imageModel','transcriptionModel','speechModel', or'rerankingModel')message: The error message (optional, auto-generated frommodelIdandmodelType)
Checking for this Error
You can check if an error is an instance of AI_NoSuchModelError using:
import { NoSuchModelError } from 'ai';
if (NoSuchModelError.isInstance(error)) {
// Handle the error
}Experimental decision resolution uses modelType: 'decisionModel'. This
includes unavailable decision capabilities and unknown decision model or
provider IDs. See Decisions.
AI 翻译查看英文原文