-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
🐛 fix: fix Claude first message can not be assistant #5001
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5001 +/- ##
==========================================
- Coverage 91.97% 91.97% -0.01%
==========================================
Files 548 548
Lines 41370 41367 -3
Branches 3552 2516 -1036
==========================================
- Hits 38049 38046 -3
Misses 3321 3321
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❤️ Great PR @arvinxx ❤️ 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 1.36.18](v1.36.17...v1.36.18) <sup>Released on **2024-12-12**</sup> #### 🐛 Bug Fixes - **misc**: Fix claude first message can not be `assistant`. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix claude first message can not be `assistant`, closes [#5001](#5001) ([063cd61](063cd61)) </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 1.36.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.78.9](v1.78.8...v1.78.9) <sup>Released on **2024-12-12**</sup> #### ♻ Code Refactoring - **misc**: Refactor the file model method. #### 🐛 Bug Fixes - **misc**: Fix claude first message can not be `assistant`. #### 💄 Styles - **misc**: Enable googleSearch Tool for gemini-2.0-flash-exp. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the file model method, closes [lobehub#4998](https://github.com/bentwnghk/lobe-chat/issues/4998) ([00af34e](00af34e)) #### What's fixed * **misc**: Fix claude first message can not be `assistant`, closes [lobehub#5001](https://github.com/bentwnghk/lobe-chat/issues/5001) ([063cd61](063cd61)) #### Styles * **misc**: Enable googleSearch Tool for gemini-2.0-flash-exp, closes [lobehub#4997](https://github.com/bentwnghk/lobe-chat/issues/4997) ([cde0d1a](cde0d1a)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
assistant
的问题📝 补充信息 | Additional Information
如果第一条消息为 assistant 的,则自动修改为 user