-
Notifications
You must be signed in to change notification settings - Fork 830
feat(cerebras): add support for Cerebras provider || feat(cerebras): add support for Cerebras provider #2913
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?
Conversation
…and tests - Implemented the Cerebras provider with necessary request and response handling. - Added configuration validation and default capabilities for the Cerebras service. - Included unit tests for configuration parsing, request headers, request body, response headers, and response body handling. - Updated README and documentation to reflect the new provider and its usage examples.
新增 Cerebras 供应商支持并更新文档变更概述
变更文件
💡 小贴士与 lingma-agents 交流的方式📜 直接回复评论
📜 在代码行处标记
📜 在讨论中提问
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2913 +/- ##
==========================================
+ Coverage 35.91% 44.96% +9.05%
==========================================
Files 69 82 +13
Lines 11576 13377 +1801
==========================================
+ Hits 4157 6015 +1858
+ Misses 7104 7015 -89
- Partials 315 347 +32 🚀 New features to boost your workflow:
|
…ormatting in README files
…ormatting in README files
…ormatting in README files
…ider capabilities - Updated the cerebrasProviderInitializer methods to use a consistent receiver name. - Enhanced the ValidateConfig method to check for nil apiTokens. - Added contextCache to the cerebrasProvider for improved request handling. - Introduced GetApiName method for better API name resolution based on request paths.
@Aias00 Please fix the conflicts |
# Conflicts: # plugins/wasm-go/extensions/ai-proxy/main_test.go # plugins/wasm-go/extensions/ai-proxy/provider/provider.go
done |
refer: https://inference-docs.cerebras.ai/introduction
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
refer: https://inference-docs.cerebras.ai/introduction
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews