Repository navigation
feat: add Cerebras as an AI provider in backend and UI - #50
krishsharma-code wants to merge 4 commits into
Conversation
|
Can you share a video walkthrough of how the UI looks like @krishsharma-code (so we can give UI flow feedback if any)? Also if flow overall OK - we also have workflows to run (security, organization, etc) as well - which we will do once flow seems OK. We will also do a manual review once it runs. |
|
Uploading Screen Recording 2026-05-27 213028.mp4… Hey! I have successfully tested the Cerebras provider locally using Docker. The UI correctly auto-fills the default model (llama3.1-8b), and the backend API validation is correctly triggering and catching invalid test keys. Attached the screen recording for reference! I successfully spun up the entire LiveReview stack locally via Docker and tested my Cerebras AI provider implementation. The default model auto-fills perfectly and backend validation is working exactly as expected. |
|
hi @krishsharma-code, Thanks for the video demo, btw. Could you please try with a valid API key? Basically we need to make sure the AI review is also working with this Cerebras. Let us know if you have any issues or doubts. |
Add Cerebras Provider and Clean Connector SignaturesOverviewAdd Cerebras to the popular AI provider catalog with default models and endpoints. Clean up unused context arguments and dead helper functions in backend connector factories. Technical Highlights
Impact
|
There was a problem hiding this comment.
❌ LiveReview policy: Not approved (blocked at Risk score) · Review #12674
| Stage | Result | Detail |
|---|---|---|
| Eligibility | ✅ | author level 1 >= required 1 |
| Static rules | ✅ | no blocking rulesets configured |
| Risk score | ❌ | Risk score 1.00 (P100) is above the cutoff of 1.00 (P20) |
| LLM classification | ✅ | class "logic-change", confidence 9 |
| Final decision | ❌ | risk: Risk score 1.00 (P100) is above the cutoff of 1.00 (P20) |
Add Build Ignore Tags to Standalone Go ProgramsOverviewAdds Technical Highlights
Impact
|
| url: 'https://cerebras.ai/', | ||
| description: 'Lightning fast AI inference with Llama models.', | ||
| icon: <Icons.AI />, | ||
| apiKeyPlaceholder: 'csk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', |
There was a problem hiding this comment.
Severity: critical
The apiKeyPlaceholder value cREDACTED_SECRET is not a mock example like the other providers. It looks like real key material was redacted, or an invalid placeholder was pasted. A placeholder may render in the UI input and could expose/confuse users.
Suggestions:
- Replace with a clearly fake example that matches Cerebras key format (e.g.
cREDACTED_SECRET). - Verify no real Cerebras API key exists in the file, git history, or bundles; rotate if one leaked.
| @@ -1,4 +1,4 @@ | |||
| package livereview | |||
There was a problem hiding this comment.
Severity: warning
Switching to the external livereview_test package prevents access to unexported identifiers from the package under test. If this test references unexported functions, types, or fields, it will no longer compile.
Suggestions:
- Confirm the test only uses exported symbols; otherwise keep
package livereviewor export the needed members. - Run
go test ./tests/...to confirm the build succeeds after the package rename.
There was a problem hiding this comment.
❌ LiveReview policy: Not approved (blocked at Risk score) · Review #13178
| Stage | Result | Detail |
|---|---|---|
| Eligibility | ✅ | author level 1 >= required 1 |
| Static rules | ✅ | no blocking rulesets configured |
| Risk score | ❌ | Risk score 1.00 is above the cutoff of 0.50 |
| LLM classification | ❌ | classification confidence 7 < required 8 |
| Final decision | ❌ | risk: Risk score 1.00 is above the cutoff of 0.50; llm: classification confidence 7 < required 8 |
Overview
This PR implements the backend connector and frontend UI configuration for adding Cerebras AI as a natively supported provider. Cerebras is OpenAI-compatible, so it correctly routes through the existing OpenAI wrapper factories.
Changes Made
internal/aiconnectors&internal/ai/langchain):ProviderCerebrasconstant and mapped it tocreateOpenAIModel().https://api.cerebras.ai/v1) to defaults.llama3.1-8band token limit cap to8000.ui/):AIProviders.tsxto add Cerebras in the UI selectable list with placeholders for API keys and auto-populated base URLs.Related Issue
This PR fulfills the backend implementation required for HexmosTech/git-lrc#79 under GSSoC.
🔍 LiveReview
Auto-approval decisions
⚙️ Customize risk-based approval policy for this repository or your organization.