feat: add Cerebras provider integration #6842
Open
+230
−0
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.
What
Adds Cerebras as a new AI provider to Jan with support for 8 models, including Llama 4 Scout, Llama 3.3 70B, GPT OSS 120B, and Qwen variants.
Why
Cerebras offers ultra-fast AI inference (2000-3000 tokens/s) with OpenAI-compatible endpoints, making it an excellent addition to Jan's provider ecosystem. This integration enables users to leverage Cerebras's high-performance models directly through Jan's interface.
How
Provider Configuration:
predefinedProvidersarray inweb-app/src/consts/providers.tshttps://api.cerebras.ai/v1Visual Assets:
getProviderLogo()function inweb-app/src/lib/utils.tsDocumentation:
docs/src/pages/docs/desktop/remote-models/cerebras.mdx_meta.jsonTechnical Approach:
This is a configuration-driven integration that leverages Jan's existing OpenAI-compatible provider infrastructure. No custom code or API handlers needed - everything works through the standard token.js fallback mechanism.
Testing
Manual Testing Required:
Automated Testing:
TypeScript compilation verified - no errors in modified files.
Breaking Changes
None. This is a purely additive change that doesn't modify existing provider behavior.
Files Changed
web-app/src/consts/providers.ts- Provider configuration (+91 lines)web-app/src/lib/utils.ts- Logo reference (+2 lines)web-app/public/images/model-provider/cerebras.png- Provider logo (53KB PNG)docs/src/pages/docs/desktop/remote-models/cerebras.mdx- Documentation (new file)docs/src/pages/docs/desktop/remote-models/_meta.json- Navigation metadata (+3 lines)Additional Notes
Model performance specs based on Cerebras documentation:
API compatibility: OpenAI-compatible but does not support
frequency_penalty,logit_bias,presence_penalty,parallel_tool_calls, orservice_tier.