-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
🐛 fix: Remove unsupported parameters of Hunyuan #8247
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
Conversation
@sxjeru is attempting to deploy a commit to the LobeHub Community Team on Vercel. A member of the Team first needs to authorize it. |
Reviewer's GuideThis PR updates the Hunyuan runtime’s chatCompletion handler to strip out unsupported parameters (frequency_penalty and presence_penalty) by excluding them from the payload and explicitly setting them to undefined for compatibility. Class diagram for updated Hunyuan chatCompletion payload handlingclassDiagram
class LobeHunyuanAI {
+baseURL: string
+chatCompletion: object
}
class chatCompletion {
+handlePayload(payload)
}
LobeHunyuanAI --> chatCompletion
%% Highlight the change: handlePayload now removes frequency_penalty and presence_penalty
class handlePayload {
- frequency_penalty
- presence_penalty
+ frequency_penalty: undefined
+ presence_penalty: undefined
}
chatCompletion --> handlePayload
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
👍 @sxjeru Thank you for raising your pull request and contributing to our Community |
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8247 +/- ##
=========================================
Coverage 87.37% 87.38%
=========================================
Files 843 843
Lines 62875 62877 +2
Branches 5671 4142 -1529
=========================================
+ Hits 54940 54942 +2
Misses 7935 7935
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This reverts commit e6edece.
❤️ Great PR @sxjeru ❤️ 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.96.5](v1.96.4...v1.96.5) <sup>Released on **2025-06-22**</sup> #### 🐛 Bug Fixes - **misc**: Remove unsupported parameters of Hunyuan. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Remove unsupported parameters of Hunyuan, closes [#8247](#8247) ([826d724](826d724)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.96.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.95.0](v1.94.5...v1.95.0) <sup>Released on **2025-06-25**</sup> #### ✨ Features - **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, add v0 (Vercel) provider support. #### 🐛 Bug Fixes - **misc**: Fix `MiniMax-M1` reasoning tag missing, fix inputTemplate behavior, Google Gemini tools declarations, Remove unsupported parameters of Hunyuan. #### 💄 Styles - **openrouter**: Add stable versions of Gemini 2.5 models. - **misc**: Add `blockAds` & `stealth` params for Browserless, Optimized Gemini thinkingBudget configuration, update i18n, update i18n. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add Brave & Google PSE & Kagi as build-in Search Provider, closes [lobehub#8172](https://github.com/jaworldwideorg/OneJA-Bot/issues/8172) ([16ae521](16ae521)) * **misc**: Add v0 (Vercel) provider support, closes [lobehub#8235](https://github.com/jaworldwideorg/OneJA-Bot/issues/8235) ([5842a18](5842a18)) #### What's fixed * **misc**: Fix `MiniMax-M1` reasoning tag missing, closes [lobehub#8240](https://github.com/jaworldwideorg/OneJA-Bot/issues/8240) ([ea76c11](ea76c11)) * **misc**: Fix inputTemplate behavior, closes [lobehub#8204](https://github.com/jaworldwideorg/OneJA-Bot/issues/8204) ([61c2c3c](61c2c3c)) * **misc**: Google Gemini tools declarations, closes [lobehub#8256](https://github.com/jaworldwideorg/OneJA-Bot/issues/8256) ([08f5d73](08f5d73)) * **misc**: Remove unsupported parameters of Hunyuan, closes [lobehub#8247](https://github.com/jaworldwideorg/OneJA-Bot/issues/8247) ([826d724](826d724)) #### Styles * **openrouter**: Add stable versions of Gemini 2.5 models, closes [lobehub#8239](https://github.com/jaworldwideorg/OneJA-Bot/issues/8239) ([d34ecab](d34ecab)) * **misc**: Add `blockAds` & `stealth` params for Browserless, closes [lobehub#8255](https://github.com/jaworldwideorg/OneJA-Bot/issues/8255) ([2ff3efa](2ff3efa)) * **misc**: Optimized Gemini thinkingBudget configuration, closes [lobehub#8224](https://github.com/jaworldwideorg/OneJA-Bot/issues/8224) ([03625e8](03625e8)) * **misc**: Update i18n, closes [lobehub#8253](https://github.com/jaworldwideorg/OneJA-Bot/issues/8253) ([b86dc9b](b86dc9b)) * **misc**: Update i18n, closes [lobehub#8242](https://github.com/jaworldwideorg/OneJA-Bot/issues/8242) ([2d1babc](2d1babc)) </details> <div align="right"> [](#readme-top) </div>
* 🐛 fix: 去除 hunyuan 频率和存在惩罚参数 * 去除重复的 ESLint no-unused-vars * Revert "去除重复的 ESLint no-unused-vars" This reverts commit e6edece.
### [Version 1.96.5](lobehub/lobe-chat@v1.96.4...v1.96.5) <sup>Released on **2025-06-22**</sup> #### 🐛 Bug Fixes - **misc**: Remove unsupported parameters of Hunyuan. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Remove unsupported parameters of Hunyuan, closes [lobehub#8247](lobehub#8247) ([826d724](lobehub@826d724)) </details> <div align="right"> [](#readme-top) </div>
* 🐛 fix: 去除 hunyuan 频率和存在惩罚参数 * 去除重复的 ESLint no-unused-vars * Revert "去除重复的 ESLint no-unused-vars" This reverts commit e6edece.
### [Version 1.96.5](lobehub/lobe-chat@v1.96.4...v1.96.5) <sup>Released on **2025-06-22**</sup> #### 🐛 Bug Fixes - **misc**: Remove unsupported parameters of Hunyuan. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Remove unsupported parameters of Hunyuan, closes [lobehub#8247](lobehub#8247) ([dfa428b](lobehub@dfa428b)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Ref:https://cloud.tencent.com/document/product/1729/111007#6d9d0237-cb50-42f7-917f-87344d28c8a9
📝 补充信息 | Additional Information
Summary by Sourcery
Bug Fixes: