Skip to content

feat: add SiliconFlow provider - #16278

Open
kanchengw wants to merge 6 commits into
vercel:mainfrom
kanchengw:main
Open

kanchengw wants to merge 6 commits into
vercel:mainfrom
kanchengw:main

Conversation

@kanchengw

@kanchengw kanchengw commented Jun 20, 2026 •

Copy link
Copy Markdown

Background

Add SiliconFlow (硅基流动) as a first-party provider in the AI SDK, enabling users to access SiliconFlow's broad model catalog (DeepSeek, Qwen, GLM, etc.) through the standard @ai-sdk/siliconflow package.

Summary

  • New @ai-sdk/siliconflow provider package at packages/siliconflow/
  • Support for chat completion (non-streaming doGenerate + streaming doStream)
  • Tool calling support
  • JSON mode (responseFormat: { type: 'json' })
  • Workflow serialization/deserialization
  • Full test suite (19 passing tests) for message conversion and tool preparation
  • Examples for both generateText and streamText
  • Documentation at content/providers/01-ai-sdk-providers/190-siliconflow.mdx

Manual Verification

Verified end-to-end with real API calls using a SiliconFlow API key.

Checklist

  • All commits are signed (PRs with unsigned commits cannot be merged)
  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Closes #16277

@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

@kanchengw is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Resolve conflicts from the Turborepo/tsconfig restructure and adapt @ai-sdk/siliconflow to the current package conventions.
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

@kanchengw is attempting to run Vercel CI for a fork pull request of the Vercel Team on Vercel.

A member of the Team first needs to approve it.

@kanchengw

kanchengw commented Nov 23, 2026 •

Copy link
Copy Markdown
Author

Hi @gr2m @aayush-kapoor @n1ckoates 👋

This PR adds a first-party @ai-sdk/siliconflow provider and has been open since June. It is now fully up to date:

  • merged the latest main and resolved conflicts.
  • adapted the package to the current conventions (no project references, tsc --noEmit, CHANGELOG.md, zod 4, konsistent naming, README format)
  • addressed all review feedback, including reporting interrupted when a stream ends without a finish_reason
  • build, type-check, tests (24, node + edge), konsistent and verifiers pass locally; Vercel Agent Review is green and all review threads are resolved

Could someone take a look and approve the CI run for this fork PR when you have a moment? Happy to make any further changes needed. Thanks!

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Provider Request] Add @ai-sdk/siliconflow (1st party provider for SiliconFlow API)

1 participant