-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Cerebras ai #1424
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
base: main
Are you sure you want to change the base?
Cerebras ai #1424
Conversation
Implements support for the Cerebras AI platform using their OpenAI-compatible API. Adds a new vendor client that enables users to configure their Cerebras API key and access Cerebras-hosted models such as llama3.1-8b and llama-3.3-70b.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I can;t figure out why it fails formatting checks.
Did you |
@@ -1 +1 @@ | |||
"1.4.172" | |||
"..1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is wrong. You don't actually need to do anything with this file. It's auto-incremented by the build pipeline.
@@ -1,3 +1,3 @@ | |||
package main | |||
|
|||
var version = "v1.4.172" | |||
var version = "v..1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with this file. Remove these two files from your PR.
I ran gofmt on a missed file, odd I thought vscode did that each save. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattjoyce Put the files back. Don't delete them! 😄 They are edited and committed as part of the build to auto-increment versions. Copy the versions of the files from main
branch.
I checked out your branch. go test
# github.com/danielmiessler/fabric
./main.go:13:17: undefined: version
FAIL github.com/danielmiessler/fabric [build failed] Now do this: git --no-pager checkout main -- nix/pkgs/fabric/version.nix version.go And now: go test ./...
? github.com/danielmiessler/fabric [no test files]
? github.com/danielmiessler/fabric/ENV/code_helper [no test files]
ok github.com/danielmiessler/fabric/cli 0.998s
ok github.com/danielmiessler/fabric/common 1.106s
ok github.com/danielmiessler/fabric/core 0.378s
ok github.com/danielmiessler/fabric/plugins 0.161s
ok github.com/danielmiessler/fabric/plugins/ai 0.749s
ok github.com/danielmiessler/fabric/plugins/ai/anthropic 0.496s
ok github.com/danielmiessler/fabric/plugins/ai/azure 0.621s
ok github.com/danielmiessler/fabric/plugins/ai/cerebras 1.218s
ok github.com/danielmiessler/fabric/plugins/ai/deepseek 1.332s
ok github.com/danielmiessler/fabric/plugins/ai/dryrun 1.204s
? github.com/danielmiessler/fabric/plugins/ai/exolab [no test files]
ok github.com/danielmiessler/fabric/plugins/ai/gemini 1.193s
? github.com/danielmiessler/fabric/plugins/ai/gemini_openai [no test files]
ok github.com/danielmiessler/fabric/plugins/ai/grokai 1.226s
ok github.com/danielmiessler/fabric/plugins/ai/groq 1.253s
? github.com/danielmiessler/fabric/plugins/ai/litellm [no test files]
? github.com/danielmiessler/fabric/plugins/ai/lmstudio [no test files]
? github.com/danielmiessler/fabric/plugins/ai/mistral [no test files]
? github.com/danielmiessler/fabric/plugins/ai/ollama [no test files]
ok github.com/danielmiessler/fabric/plugins/ai/openai 1.284s
ok github.com/danielmiessler/fabric/plugins/ai/openrouter 1.396s [no tests to run]
? github.com/danielmiessler/fabric/plugins/ai/siliconcloud [no test files]
? github.com/danielmiessler/fabric/plugins/db [no test files]
ok github.com/danielmiessler/fabric/plugins/db/fsdb 1.504s
? github.com/danielmiessler/fabric/plugins/strategy [no test files]
ok github.com/danielmiessler/fabric/plugins/template 2.014s
? github.com/danielmiessler/fabric/plugins/tools [no test files]
? github.com/danielmiessler/fabric/plugins/tools/code_helper [no test files]
ok github.com/danielmiessler/fabric/plugins/tools/converter 1.665s
? github.com/danielmiessler/fabric/plugins/tools/githelper [no test files]
? github.com/danielmiessler/fabric/plugins/tools/jina [no test files]
? github.com/danielmiessler/fabric/plugins/tools/lang [no test files]
? github.com/danielmiessler/fabric/plugins/tools/to_pdf [no test files]
? github.com/danielmiessler/fabric/plugins/tools/youtube [no test files]
? github.com/danielmiessler/fabric/restapi [no test files] |
@mattjoyce I also ran
Looks like the problem is in your test. |
@mattjoyce After saving that in VSCode, re-running the |
ok, I think I have it sorted. If not just reject it, and I will resubmit. |
@mattjoyce please go ahead and close this. I re-created it as #1425 @eugeis please merge 1425. |
Thank you, @mattjoyce |
Add Cerebras AI Integration
This PR adds support for Cerebras AI to the Fabric CLI, enabling users to
access models hosted on the Cerebras platform.
Changes
cerebras
package underplugins/ai/
Testing
I've tested the implementation by:
fabric --setup
to configure the Cerebras API keyfabric -L
This implementation takes advantage of Cerebras' OpenAI-compatible API,
making the integration straightforward and maintainable.