Skip to content

Conversation

@AryanBagade
Copy link
Contributor

@AryanBagade AryanBagade commented Dec 8, 2025

Background

The AI SDK 5.0 introduced breaking changes to the reasoning property names in generateText() and streamText() responses. The migration guide documents these changes, but several documentation files and examples were still using the old property names, which would confuse developers trying to use the latest API version.

Summary

Replace deprecated reasoning and reasoningDetails properties with new reasoningText and reasoning properties across all documentation and examples to align with AI SDK 5.0 migration guide.

Manual Verification

✅ Verified all occurrences of old property names have been
✅ Confirmed changes match the migration guide

Checklist

  • Tests have been added / updated (for bug fixes / features) - N/A (documentation only)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Fixes #10842

Replace deprecated `reasoning` and `reasoningDetails` properties with new `reasoningText` and `reasoning` properties across all documentation and examples to align with AI SDK 5.0 migration guide.

Fixes vercel#10842
@vercel-ai-sdk vercel-ai-sdk bot added ai/provider documentation Improvements or additions to documentation provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/anthropic labels Dec 8, 2025
@lgrammel lgrammel merged commit e5a42f7 into vercel:main Dec 8, 2025
29 of 31 checks passed
vercel-ai-sdk bot pushed a commit that referenced this pull request Dec 8, 2025
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Dec 8, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Dec 8, 2025

⚠️ Backport to release-v5.0 created but has conflicts: #10969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider documentation Improvements or additions to documentation provider/amazon-bedrock Issues related to the @ai-sdk/amazon-bedrock provider provider/anthropic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace reasoning, reasoningDetails with reasoningText, reasoning

2 participants