Skip to content

Comments

chore: remove feature flagged ai sdk usage#10622

Merged
sestinj merged 4 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-standalone
Feb 24, 2026
Merged

chore: remove feature flagged ai sdk usage#10622
sestinj merged 4 commits intocontinuedev:mainfrom
uinstinct:ai-sdk-standalone

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Feb 18, 2026

Description

AI SDK usage could be triggered with the usage of USE_VERCEL_AI_SDK_ANTHROPIC and USE_VERCEL_AI_SDK_OPENAI

Since now we have the AiSdk LLM api, these can be removed.

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? ]


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

    • Removed USE_VERCEL_AI_SDK_OPENAI and USE_VERCEL_AI_SDK_ANTHROPIC code paths from OpenAI.ts and Anthropic.ts.
    • Deleted VERCEL_AI_SDK.md and the Anthropic multi-turn tools test.
    • Updated tests to use provider: "ai-sdk" with fully qualified models (e.g., openai/gpt-4o-mini, anthropic/claude-*); disabled streaming usage assertions in vercel-sdk tests.
  • Migration

    • The USE_VERCEL_AI_SDK_* env flags are no longer supported.
    • To use the AI SDK, configure provider: "ai-sdk" and model: "/" (e.g., openai/gpt-4o-mini or anthropic/claude-haiku-4-5).

Written for commit 85f2140. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner February 18, 2026 13:22
@uinstinct uinstinct requested review from sestinj and removed request for a team February 18, 2026 13:22
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Feb 18, 2026
@continue-staging
Copy link
Contributor

Docs Review

No documentation updates needed for this PR.

Reason: This change removes internal feature flags (USE_VERCEL_AI_SDK_OPENAI and USE_VERCEL_AI_SDK_ANTHROPIC) that were used for gradual rollout testing. These environment variables were never documented as public configuration options—they were internal implementation details. The deleted VERCEL_AI_SDK.md file was developer-facing documentation within the packages/openai-adapters directory, not part of the public Continue docs.

Users configuring AI providers continue to use the same documented approaches, with no changes to their workflow or configuration.

@continue-staging
Copy link
Contributor

Documentation Review

No documentation updates are required for this PR.

Reason: This PR removes internal feature-flagged Vercel AI SDK code from the openai-adapters package. The deleted VERCEL_AI_SDK.md file and the USE_VERCEL_AI_SDK_* environment variables were internal implementation details that were never exposed in the public Continue documentation. Users did not interact with these feature flags, so there's nothing to update or remove from the docs.

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.

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.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Feb 18, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 18, 2026
@sestinj sestinj merged commit 98c99d3 into continuedev:main Feb 24, 2026
58 of 60 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Feb 24, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2026
@uinstinct uinstinct deleted the ai-sdk-standalone branch February 24, 2026 04:10
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:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants