Skip to content

feat: ai-sdk support for xai and deepseek#10784

Open
uinstinct wants to merge 2 commits intocontinuedev:mainfrom
uinstinct:more-prov-1
Open

feat: ai-sdk support for xai and deepseek#10784
uinstinct wants to merge 2 commits intocontinuedev:mainfrom
uinstinct:more-prov-1

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Feb 24, 2026

Description

add support for xai and deepseek providers

requires #10642 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? ]


Continue Tasks: ❌ 7 failed — View all


Summary by cubic

Adds support for xAI and DeepSeek providers and upgrades adapters to Vercel AI SDK v6, aligning tool, message, and streaming formats for compatibility.

  • New Features

    • Added xai and deepseek providers (createXai, createDeepSeek) and wired them into AiSdk PROVIDER_MAP.
    • Switched Anthropics to native createAnthropic.
  • Migration

    • Upgraded ai to v6; update dependencies accordingly.
    • Tools: parameters renamed to inputSchema; top-level schema must be type "object".
    • Tool calls: args renamed to input in messages and streams.
    • Streaming: text/reasoning now use start/delta/end with ids; file and source shapes updated.
    • max_tokens now passed as maxOutputTokens in AiSdkApi.

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

@haystack-code-reviewer-pr-hook

Try Haystack Code Reviewer

Want AI-powered code review for this PR? Get instant analysis, interactive visualizations, and actionable insights.

Review this PR with Haystack

@uinstinct uinstinct marked this pull request as ready for review February 26, 2026 07:00
@uinstinct uinstinct requested a review from a team as a code owner February 26, 2026 07:00
@uinstinct uinstinct requested review from sestinj and removed request for a team February 26, 2026 07:00
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 26, 2026
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 5 files

Prompt for AI agents (unresolved 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="package.json">

<violation number="1" location="package.json:28">
P2: @ai-sdk/deepseek is only added to the root package.json even though the import lives in packages/openai-adapters. That package doesn’t declare @ai-sdk/deepseek, so its build/publish will miss a required dependency. Move/add the dependency to packages/openai-adapters/package.json (or declare it there as well).</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

"typescript": "^5.6.3"
},
"dependencies": {
"@ai-sdk/deepseek": "^2.0.20"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Feb 26, 2026

Choose a reason for hiding this comment

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

P2: @ai-sdk/deepseek is only added to the root package.json even though the import lives in packages/openai-adapters. That package doesn’t declare @ai-sdk/deepseek, so its build/publish will miss a required dependency. Move/add the dependency to packages/openai-adapters/package.json (or declare it there as well).

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 28:

<comment>@ai-sdk/deepseek is only added to the root package.json even though the import lives in packages/openai-adapters. That package doesn’t declare @ai-sdk/deepseek, so its build/publish will miss a required dependency. Move/add the dependency to packages/openai-adapters/package.json (or declare it there as well).</comment>

<file context>
@@ -23,5 +23,8 @@
     "typescript": "^5.6.3"
+  },
+  "dependencies": {
+    "@ai-sdk/deepseek": "^2.0.20"
   }
 }
</file context>
Fix with Cubic

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

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant