Skip to content

Commit

Permalink
feat (docs): add model assignment error troubleshooting page (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored Jul 9, 2024
1 parent 5063b8c commit af0b890
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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.
4 changes: 4 additions & 0 deletions content/docs/08-troubleshooting/03-common-issues/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ description: Troubleshooting information for common issues encountered with the
- [ Strange Stream Output ](/docs/troubleshooting/common-issues/strange-stream-output)
- [ Streamable UI Errors ](/docs/troubleshooting/common-issues/streamable-ui-errors)
- [ Streaming Not Working When Deploying on Vercel ](/docs/troubleshooting/common-issues/streaming-not-working-on-vercel)
- [ Streaming Not Working When Deploying on Vercel (Next.js Pages Router) ](/docs/troubleshooting/common-issues/streaming-not-working-on-vercel-pages-router)
- [ Getting Timeouts When Deploying on Vercel](/docs/troubleshooting/common-issues/timeouts-on-vercel)
- [ Unclosed Streams ](/docs/troubleshooting/common-issues/unclosed-streams)
- [ useChat Failed to Parse Stream ](/docs/troubleshooting/common-issues/use-chat-failed-to-parse-stream)
- [ NaN token counts when using streamText with OpenAI models](/docs/troubleshooting/common-issues/nan-token-counts-openai-streaming)
- [ Model is not assignable to type "LanguageModelV1" ](/docs/troubleshooting/common-issues/model-is-not-assignable-to-type)

0 comments on commit af0b890

Please sign in to comment.