library · inferred from evidence
@ai-sdk/provider
Provider package for AI SDK, version 4.0.x in the v7 lineup.
- Diagnose "Model is not assignable to type LanguageModelV1"
The TypeScript error that means your @ai-sdk/* provider package is from a different spec generation than your ai core: upgrade them together.
- EmptyResponseBodyError, InvalidResponseDataError, JSONParseError
The v7 errors for malformed provider responses: empty bodies, invalid data shapes, and JSON that would not parse.
- APICallError: when the provider request itself fails
The v7 error for failed provider calls: network errors and non-2xx responses surface as APICallError with statusCode, url, and retry info.
- Pin ai and @ai-sdk/* together: the version matrix that prevents protocol errors
AI SDK 7 version discipline: ai, provider packages, and UI bindings must move together, and the v7 line-up is ai 7 with @ai-sdk/* provider 4.x era packages.