feat: add Cerebras AI plugin to plugin registry #1425
Merged
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.
CHANGES
What this Pull Request (PR) does
This PR adds support for Cerebras AI to the Fabric CLI, enabling users to access models hosted on the Cerebras platform.
Related issues
N/A - Rework of #1424
Screenshots
N/A
Files Changed
Code Changes
core/plugin_registry.go, the Cerebras package is imported, and its client is added to the registry initialization:plugins/ai/cerebras/cerebras.go, a newClientstruct is defined, embedding the OpenAI client for compatibility:plugins/ai/cerebras/cerebras_test.go, tests are added to ensure the client is initialized correctly and configured with the expected name and base URL.Reason for Changes
The addition of the Cerebras AI plugin expands the range of AI service providers supported by the
fabricproject. This change allows users to interact with Cerebras AI models through the same interface used for other AI providers, promoting flexibility and extensibility in the application.Impact of Changes
Test Plan
cerebras_test.goto verify that the Cerebras client initializes correctly and is configured with the right name and API base URL.