Skip to content

chore: upgrade ai sdk to v6#10642

Draft
uinstinct wants to merge 7 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-upgrade-2
Draft

chore: upgrade ai sdk to v6#10642
uinstinct wants to merge 7 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-upgrade-2

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Feb 19, 2026

Description

Upgrade aisdk along with corresponding adapters to v6. Also upgrade the functions in packages/openai-adapters to use v6 methods.

requires #10622 to be merged first

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Upgraded the adapters to AI SDK v6 and aligned tool, message, and stream handling with the new API to ensure consistent behavior across OpenAI and Anthropic. Removed legacy feature flags and docs; tests now target the unified AI SDK provider.

  • Dependencies

    • ai: ^6.0.86
    • @ai-sdk/openai: ^3.0.29
    • @ai-sdk/anthropic: ^3.0.44
  • Refactors

    • Use createAnthropic for Anthropics; remove Vercel SDK feature flags and provider stubs.
    • Map max_tokens to maxOutputTokens; keep stop/top_p behavior consistent.
    • Update tool conversion to use inputSchema and ensure top-level object schemas.
    • Convert assistant tool calls to input (was args) and adjust message mapping.
    • Update stream converter to v6 event names and shapes (text-/reasoning-start|delta|end with ids, file/source payloads).
    • Remove outdated VERCEL_AI_SDK.md and legacy tests; add tests for the ai-sdk provider with namespaced models (e.g., openai/gpt-4o-mini).

Written for commit 7cca187. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner February 19, 2026 08:35
@uinstinct uinstinct requested review from sestinj and removed request for a team February 19, 2026 08:35
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 19, 2026
@uinstinct uinstinct marked this pull request as draft February 19, 2026 08:35
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 13 files

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

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant

Comments