-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
✨ feat: add claude 3 to bedrock provider #1551
Conversation
Thank you for raising your pull request and contributing to our Community |
@danielglh is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
30cd968
to
2a1660a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1551 +/- ##
==========================================
+ Coverage 92.57% 92.99% +0.41%
==========================================
Files 232 233 +1
Lines 12474 12514 +40
Branches 1510 1524 +14
==========================================
+ Hits 11548 11637 +89
+ Misses 926 877 -49 ☔ View full report in Codecov by Sentry. |
64113be
to
c7b9fd5
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
c7b9fd5
to
30ccd9a
Compare
❤️ Great PR @danielglh ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
## [Version 0.135.0](v0.134.1...v0.135.0) <sup>Released on **2024-03-14**</sup> #### ✨ Features - **misc**: Add claude 3 to bedrock provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add claude 3 to bedrock provider, closes [#1551](#1551) ([6e1fe33](6e1fe33)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 0.135.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.17.0](v1.16.1...v1.17.0) <sup>Released on **2024-03-14**</sup> #### ✨ Features - **misc**: Add claude 3 to bedrock provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add claude 3 to bedrock provider, closes [lobehub#1551](https://github.com/bentwnghk/lobe-chat/issues/1551) ([6e1fe33](6e1fe33)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ✨ feat: new claude 3 models in bedrock * ✨ support claude 3 params and stream handling * ♻️ fix: remove useless condition check * ✨ feat: add haiku to both bedrock and anthropic provider
## [Version 0.135.0](lobehub/lobe-chat@v0.134.1...v0.135.0) <sup>Released on **2024-03-14**</sup> #### ✨ Features - **misc**: Add claude 3 to bedrock provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add claude 3 to bedrock provider, closes [lobehub#1551](lobehub#1551) ([6e1fe33](lobehub@6e1fe33)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
## [Version 0.135.0](lobehub/lobe-chat@v0.134.1...v0.135.0) <sup>Released on **2024-03-14**</sup> #### ✨ Features - **misc**: Add claude 3 to bedrock provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add claude 3 to bedrock provider, closes [#1551](lobehub/lobe-chat#1551) ([6e1fe33](lobehub/lobe-chat@6e1fe33)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Add Claude 3 support to AWS Bedrock provider
fix #1511
📝 补充信息 | Additional Information
Anthropic has two APIs, the Messages API and the Text Completions API. They have different interfaces and different streaming formats. The Text Completions API is now marked as "Legacy" and Anthropic encourages to use of the Messages API instead.
Previous to the release of Claude 3, AWS Bedrock supported the Text Completions API for Claude 1.2, 2 & 2.1. Claude 3 was only released with the Messages API (due to the reason above), which was why simply adding a new model didn't work.
Therefore, this PR replaces the existing Text Completions API implementation with Messages API implementation.