-
-
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 enable_search
parameter intro condition in Qwen
#5297
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
๐ @hezhijie0327 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5297 +/- ##
==========================================
- Coverage 91.73% 91.72% -0.01%
==========================================
Files 591 591
Lines 46027 46042 +15
Branches 2833 2713 -120
==========================================
+ Hits 42221 42231 +10
- Misses 3806 3811 +5
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. |
โฆearch` parameter
Thank you very much for your PR. |
@PatriciaLee3 added |
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.
ๆ่งไธ่ฝ็ดๆฅๅจ่ฟ้็จ process.env.QWEN_ENABLE_SEARCH
ๅง๏ผๅฎขๆท็ซฏ่ฏทๆฑๆจกๅผไธ่ฟไธชๆนๆกๅฐฑๅคฑๆไบ๏ผ
็กฎๅฎ๏ผไฝๆฏ Qwen ๅฎขๆท็ซฏ่ฏทๆฑๆฏ็ฆ็จ็ lobe-chat/src/config/modelProviders/qwen.ts Lines 258 to 262 in 9c5822a
ๅ็ปญๆ่ฎกๅๅฎ็ฐไธไธชๅผๅ
ณๆงๅถ่ฟ็ฑปๆฉๅฑๅ่ฝๅ๏ผHunyuan ๅ Minimax ๅ
ถๅฎไนๆ็ฑปไผผๅ่ฝ๏ผๅฆ Hunyuan ้ป่ฎคๆฏๅผ็็ |
True, but Qwen client requests are disabled lobe-chat/src/config/modelProviders/qwen.ts Lines 258 to 262 in 9c5822a
There are plans to implement an extended function such as switch control in the future. Hunyuan and Minimax actually have similar functions. For example, Hunyuan is on by default. |
ๆ่งๅฏไปฅๆๆฉๅฑๅ่ฝ้้กนใ้ๆบๆงๅๆฐใๅๅฒๆถๆฏๆฐ้ๅถๅๆฐๅๆจกๅ็ปๅฎใๆไธคไธชๅบๆฏ้ๆฑ |
It seems that the extended function options, randomness parameters, and historical message number limit parameters can be bound to the model. There are two scenario requirements
|
ๅฆๆๆฏ่ฟๆ ท็่ฏๅๆฒก้ฎ้ข |
If that's the case, that's fine. |
โค๏ธ Great PR @hezhijie0327 โค๏ธ 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.45.12](v1.45.11...v1.45.12) <sup>Released on **2025-01-14**</sup> #### ๐ Bug Fixes - **misc**: Fix `enable_search` parameter intro condition in Qwen. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix `enable_search` parameter intro condition in Qwen, closes [#5297](#5297) ([0b19c20](0b19c20)) </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.45.12 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
### [Version 1.87.7](v1.87.6...v1.87.7) <sup>Released on **2025-01-14**</sup> #### โป Code Refactoring - **plugin**: Update plugin prompt. - **misc**: Improve ai provider code. #### ๐ Bug Fixes - **misc**: Fix `enable_search` parameter intro condition in Qwen, fix pull models error in new ai provider, fix some providers issues, support Gemini 2.0 HarmBlockThreshold. #### ๐ Styles - **misc**: Improve model config form modal. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **plugin**: Update plugin prompt, closes [lobehub#5083](https://github.com/bentwnghk/lobe-chat/issues/5083) ([ddd3b53](ddd3b53)) * **misc**: Improve ai provider code, closes [lobehub#5442](https://github.com/bentwnghk/lobe-chat/issues/5442) ([32013b4](32013b4)) #### What's fixed * **misc**: Fix `enable_search` parameter intro condition in Qwen, closes [lobehub#5297](https://github.com/bentwnghk/lobe-chat/issues/5297) ([0b19c20](0b19c20)) * **misc**: Fix pull models error in new ai provider, closes [lobehub#5441](https://github.com/bentwnghk/lobe-chat/issues/5441) ([1726d85](1726d85)) * **misc**: Fix some providers issues, closes [lobehub#5429](https://github.com/bentwnghk/lobe-chat/issues/5429) ([b7edbd3](b7edbd3)) * **misc**: Support Gemini 2.0 HarmBlockThreshold, closes [lobehub#5422](https://github.com/bentwnghk/lobe-chat/issues/5422) ([4d1a4cd](4d1a4cd)) #### Styles * **misc**: Improve model config form modal, closes [lobehub#5438](https://github.com/bentwnghk/lobe-chat/issues/5438) ([9b303e0](9b303e0)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
โฆ#5297) * ๐ fix: fix `enable_search`parameter intro condition in Qwen * ๐จ chore: add some notes * โป๏ธ refactor: intro `QwenEnableSearchModelSeries` to control `enable_search` parameter * ๐จ chore: update comments * ๐จ chore: add env to control `enable_search` & `search_strategy`
### [Version 1.45.12](lobehub/lobe-chat@v1.45.11...v1.45.12) <sup>Released on **2025-01-14**</sup> #### ๐ Bug Fixes - **misc**: Fix `enable_search` parameter intro condition in Qwen. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix `enable_search` parameter intro condition in Qwen, closes [lobehub#5297](lobehub#5297) ([0b19c20](lobehub@0b19c20)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
enable_search
ไป ๅฏนๅไธๆจกๅqwen-max
,qwen-plus
,qwen-turbo
็ณปๅ็ๆ๐ ่กฅๅ ไฟกๆฏ | Additional Information
ref: https://help.aliyun.com/zh/model-studio/developer-reference/use-qwen-by-calling-api