-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: migrate Cerebras provider to AI SDK #11086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
daniel-lxs
merged 1 commit into
main
from
feature/ext-690-migrate-cerebras-provider-to-ai-sdk
Jan 29, 2026
Merged
feat: migrate Cerebras provider to AI SDK #11086
daniel-lxs
merged 1 commit into
main
from
feature/ext-690-migrate-cerebras-provider-to-ai-sdk
Jan 29, 2026
+583
−472
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Review complete. All previous issues have been addressed.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
1976734 to
a212574
Compare
- Rewrote cerebras.ts from 362 lines to ~170 lines using @ai-sdk/cerebras - Uses createCerebras from the dedicated Cerebras AI SDK package - Uses streamText/generateText from 'ai' package - Preserved X-Cerebras-3rd-Party-Integration: roocode attribution header - Updated tests to mock @ai-sdk/cerebras - Removed manual fetch/SSE parsing, TagMatcher, tool schema stripping
a212574 to
c9ea6ba
Compare
mrubens
approved these changes
Jan 29, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
size:XXL
This PR changes 1000+ lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Migrate the Cerebras provider from manual
fetch-based implementation (362 lines) to useOpenAICompatibleHandlerwith Vercel AI SDK (~70 lines).Changes
src/api/providers/cerebras.tsusing AI SDK patterntool-callevents now ignored)X-Cerebras-3rd-Party-Integration: roocodeattribution headerRemoved (AI SDK handles automatically)
<think>tags (AI SDK emitsreasoning-delta)minItems/maxItems)Testing
Fixes EXT-690
Important
Migrates Cerebras provider to AI SDK, simplifying implementation and updating tests for new streaming behavior.
CerebrasHandlerincerebras.tsto useOpenAICompatibleHandlerwith Vercel AI SDK.X-Cerebras-3rd-Party-Integration: roocodeheader.cerebras.spec.tsto match AI SDK streaming behavior, ignoringtool-callevents.<think>tags.minItems/maxItems).@ai-sdk/cerebrastopackage.json.This description was created by
for c9ea6ba. You can customize this summary. It will automatically update as commits are pushed.