UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

22 lines (13 loc) 622 B
--- title: Model is not assignable to type "LanguageModelV1" description: Troubleshooting errors related to incompatible models. --- # Model is not assignable to type "LanguageModelV1" ## Issue I have updated the AI SDK and now I get the following error: `Type 'SomeModel' is not assignable to type 'LanguageModelV1'.` <Note>Similar errors can occur with `EmbeddingModelV4` as well.</Note> ## Background Sometimes new features are being added to the model specification. This can cause incompatibilities with older provider versions. ## Solution Update your provider packages and the AI SDK to the latest version.