Skip to content

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

Draft
uinstinct wants to merge 6 commits intocontinuedev:mainfrom
uinstinct:more-prov-1
Draft

feat: ai-sdk support for xai and deepseek#10784
uinstinct wants to merge 6 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).
    • 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 ddbaab3. 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

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

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant