ai-sdk
Installation
SKILL.md
AI SDK version and documentation routing
Identify ai and the provider/React package versions in the relevant workspace's
manifest, lockfile or installed package. Keep the installed major unless an
upgrade is requested.
- AI SDK 7 implementation or migration: use
ai-sdk-7. - AI SDK 6 maintenance: use
ai-sdk-6. - Unknown, mixed or older versions: resolve them before applying either API set.
- New apps: start on the current major (7 when written;
npm view ai dist-tagsconfirms).ai@7pairs with@ai-sdk/react@4,ai@6with@ai-sdk/react@3. Provider majors differ per package (for v7, Amazon Bedrock and xAI are 5.x, OpenAI-compatible 3.x), so install each provider'slatestfor v7 and itsai-v6dist-tag for v6 (npm view <pkg> dist-tags).