chore: remove feature flagged ai sdk usage#10622
Conversation
Docs ReviewNo documentation updates needed for this PR. Reason: This change removes internal feature flags ( Users configuring AI providers continue to use the same documented approaches, with no changes to their workflow or configuration. |
Documentation ReviewNo documentation updates are required for this PR. Reason: This PR removes internal feature-flagged Vercel AI SDK code from the |
There was a problem hiding this comment.
1 issue found across 6 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/openai-adapters/src/test/vercel-sdk.test.ts">
<violation number="1" location="packages/openai-adapters/src/test/vercel-sdk.test.ts:47">
P2: testAiSdkProvider ignores expectUsage from the config and always disables usage assertions, so callers that set expectUsage: true never get coverage.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Description
AI SDK usage could be triggered with the usage of
USE_VERCEL_AI_SDK_ANTHROPICandUSE_VERCEL_AI_SDK_OPENAISince now we have the AiSdk LLM api, these can be removed.
AI Code Review
@continue-reviewChecklist
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? ]
Continue Tasks:▶️ 2 queued · ▶️ 7 not started · ✅ 20 no changes — View all
Summary by cubic
Removed the Vercel AI SDK feature-flag paths from OpenAI and Anthropic adapters. These adapters now always use their native clients; AI SDK usage is via the dedicated ai-sdk provider.
Refactors
Migration
Written for commit 85f2140. Summary will update on new commits.