Skip to content

Conversation

@continue
Copy link
Contributor

@continue continue bot commented Dec 10, 2025

Summary

Updates documentation in VERCEL_AI_SDK.md to reflect breaking API changes introduced in AI SDK v5 (upgraded from v4.3.19 to v5.0.52 in PR #9113, code fixes in PR #9118).

Changes

Added comprehensive documentation for AI SDK v5 breaking changes:

Breaking Changes Documented

  1. Request Parameters: maxTokensmaxOutputTokens
  2. Tool Call Access: toolCall.argstoolCall.input
  3. Usage Properties:
    • result.usage.promptTokensresult.usage.inputTokens
    • result.usage.completionTokensresult.usage.outputTokens

New Documentation Section

Added "AI SDK v5 Migration" section containing:

  • Complete list of breaking changes with examples
  • Files modified in openai-adapters package
  • Version requirements (AI SDK v5.0.52+, Node 18+, zod ^3.25.76 or ^4)
  • Compatibility notes confirming zero consumer impact

Enhanced Examples

Updated code examples throughout to show v5 API usage:

  • Added inline comments highlighting v5 changes
  • Updated streamText/generateText examples with maxOutputTokens
  • Added dedicated code block showing all v5 API changes

Related PRs

Files Modified

  • packages/openai-adapters/VERCEL_AI_SDK.md

Testing

Documentation-only changes. No code modifications.


This agent session was co-authored by nate and Continue.


Summary by cubic

Updates VERCEL_AI_SDK.md to align with AI SDK v5 and document breaking changes, with updated examples and a clear migration path. Ensures the docs match the v5 code and confirms no consumer code changes.

  • Migration
    • Renames: maxTokens → maxOutputTokens, toolCall.args → toolCall.input, usage.promptTokens → inputTokens, usage.completionTokens → outputTokens
    • Adds “AI SDK v5 Migration” section with examples, version requirements (AI SDK v5.0.52+, Node 18+, zod ^3/^4), and compatibility notes
    • Updates streamText/generateText examples to use maxOutputTokens
    • Docs-only change; external interface remains unchanged

Written for commit 6529296. Summary will update automatically on new commits.

Document breaking changes introduced in AI SDK v5 upgrade:
- maxTokens → maxOutputTokens parameter rename
- toolCall.args → toolCall.input property rename
- usage.promptTokens → usage.inputTokens property rename
- usage.completionTokens → usage.outputTokens property rename

Add dedicated AI SDK v5 Migration section with:
- Complete list of breaking changes
- Files modified in openai-adapters package
- Version requirements and compatibility notes
- Zero consumer impact confirmation

Generated with [Continue](https://continue.dev)

Co-authored-by: nate <[email protected]>
Co-Authored-By: Continue <[email protected]>
@continue continue bot requested a review from a team as a code owner December 10, 2025 23:18
@continue continue bot requested review from RomneyDa and removed request for a team December 10, 2025 23:18
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 10, 2025
@continue
Copy link
Contributor Author

continue bot commented Dec 10, 2025

✅ Documentation review complete. This PR only contains documentation updates and doesn't introduce any code changes that would require additional documentation. No further documentation PR needed.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Dec 16, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 16, 2025
@RomneyDa RomneyDa merged commit 465ddfb into snyk-fix-29893fa185d8c83d0ae23b9800ed9849 Dec 16, 2025
8 checks passed
@RomneyDa RomneyDa deleted the docs/ai-sdk-v5-updates branch December 16, 2025 01:08
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Dec 16, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants