-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (docs): add model assignment error troubleshooting page (#2223)
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...docs/08-troubleshooting/03-common-issues/30-model-is-not-assignable-to-type.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
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 `EmbeddingModelV1` 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters