Skip to content
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

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Jan 5, 2025

๐Ÿ’ป ๅ˜ๆ›ด็ฑปๅž‹ | Change Type

  • โœจ feat
  • ๐Ÿ› fix
  • โ™ป๏ธ refactor
  • ๐Ÿ’„ style
  • ๐Ÿ‘ท build
  • โšก๏ธ perf
  • ๐Ÿ“ docs
  • ๐Ÿ”จ chore

๐Ÿ”€ ๅ˜ๆ›ด่ฏดๆ˜Ž | Description of Change

  1. enable_search ไป…ๅฏนๅ•†ไธšๆจกๅž‹ qwen-max, qwen-plus, qwen-turbo ็ณปๅˆ—็”Ÿๆ•ˆ
  2. ๅผ•ๅ…ฅไธคไธช็Žฏๅขƒๅ˜้‡
ๅ˜้‡ๅ ๆ่ฟฐ ้ป˜่ฎคๅ€ผ ๅฏ้€‰ๅ€ผ
QWEN_ENABLE_SEARCH ๆจกๅž‹ๅœจ็”Ÿๆˆๆ–‡ๆœฌๆ—ถๆ˜ฏๅฆไฝฟ็”จไบ’่”็ฝ‘ๆœ็ดข็ป“ๆžœ่ฟ›่กŒๅ‚่€ƒ 0 1
QWEN_SEARCH_STRATEGY ๆœ็ดขไบ’่”็ฝ‘ไฟกๆฏ็š„ๆ•ฐ้‡ standard pro

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

ref: https://help.aliyun.com/zh/model-studio/developer-reference/use-qwen-by-calling-api

image
image

Copy link

vercel bot commented Jan 5, 2025

@hezhijie0327 is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 5, 2025
Copy link

gru-agent bot commented Jan 5, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail defa656 ๐Ÿšซ Skipped No files need to be tested {"src/libs/agent-runtime/qwen/index.ts":"no test value"}

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@lobehubbot
Copy link
Member

๐Ÿ‘ @hezhijie0327

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
้žๅธธๆ„Ÿ่ฐขๆ‚จๆๅ‡บๆ‹‰ๅ–่ฏทๆฑ‚ๅนถไธบๆˆ‘ไปฌ็š„็คพๅŒบๅšๅ‡บ่ดก็Œฎ๏ผŒ่ฏท็กฎไฟๆ‚จๅทฒ็ป้ตๅพชไบ†ๆˆ‘ไปฌ็š„่ดก็ŒฎๆŒ‡ๅ—๏ผŒๆˆ‘ไปฌไผšๅฐฝๅฟซๅฎกๆŸฅๅฎƒใ€‚
ๅฆ‚ๆžœๆ‚จ้‡ๅˆฐไปปไฝ•้—ฎ้ข˜๏ผŒ่ฏท้šๆ—ถไธŽๆˆ‘ไปฌ่”็ณปใ€‚

@dosubot dosubot bot added the ๐Ÿ› Bug Something isn't working | ็ผบ้™ท label Jan 5, 2025
Copy link

codecov bot commented Jan 5, 2025

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.72%. Comparing base (bde6d64) to head (9f16d4b).
Report is 48 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/qwen/index.ts 68.75% 5 Missing โš ๏ธ
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     
Flag Coverage ฮ”
app 91.72% <68.75%> (-0.01%) โฌ‡๏ธ
server ?

Flags with carried forward coverage won't be shown. Click here to find out more.

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 5, 2025
@PatriciaLee3
Copy link

Thank you very much for your PR.
Perhaps we should provide an option for people to choose whether to enable this feature, rather than having it on in all cases. IMO, it is unclear how enable_search affects the model's input, and it may lead to difficulties in calculating the number of tokens and unexpected usage costs.

@hezhijie0327
Copy link
Contributor Author

@PatriciaLee3 added QWEN_ENABLE_SEARCH & QWEN_SEARCH_STRATEGY, should suit your requirement

Copy link
Contributor

@arvinxx arvinxx left a 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 ๅง๏ผŸๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆจกๅผไธ‹่ฟ™ไธชๆ–นๆกˆๅฐฑๅคฑๆ•ˆไบ†๏ผŸ

@hezhijie0327
Copy link
Contributor Author

ๆ„Ÿ่ง‰ไธ่ƒฝ็›ดๆŽฅๅœจ่ฟ™้‡Œ็”จ process.env.QWEN_ENABLE_SEARCH ๅง๏ผŸๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆจกๅผไธ‹่ฟ™ไธชๆ–นๆกˆๅฐฑๅคฑๆ•ˆไบ†๏ผŸ

็กฎๅฎž๏ผŒไฝ†ๆ˜ฏ Qwen ๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆ˜ฏ็ฆ็”จ็š„

checkModel: 'qwen-turbo-latest',
description:
'้€šไน‰ๅƒ้—ฎๆ˜ฏ้˜ฟ้‡Œไบ‘่‡ชไธป็ ”ๅ‘็š„่ถ…ๅคง่ง„ๆจก่ฏญ่จ€ๆจกๅž‹๏ผŒๅ…ทๆœ‰ๅผบๅคง็š„่‡ช็„ถ่ฏญ่จ€็†่งฃๅ’Œ็”Ÿๆˆ่ƒฝๅŠ›ใ€‚ๅฎƒๅฏไปฅๅ›ž็ญ”ๅ„็ง้—ฎ้ข˜ใ€ๅˆ›ไฝœๆ–‡ๅญ—ๅ†…ๅฎนใ€่กจ่พพ่ง‚็‚น็œ‹ๆณ•ใ€ๆ’ฐๅ†™ไปฃ็ ็ญ‰๏ผŒๅœจๅคšไธช้ข†ๅŸŸๅ‘ๆŒฅไฝœ็”จใ€‚',
disableBrowserRequest: true,
id: 'qwen',


ๅŽ็ปญๆœ‰่ฎกๅˆ’ๅฎž็Žฐไธ€ไธชๅผ€ๅ…ณๆŽงๅˆถ่ฟ™็ฑปๆ‰ฉๅฑ•ๅŠŸ่ƒฝๅ˜›๏ผŒHunyuan ๅ’Œ Minimax ๅ…ถๅฎžไนŸๆœ‰็ฑปไผผๅŠŸ่ƒฝ๏ผŒๅฆ‚ Hunyuan ้ป˜่ฎคๆ˜ฏๅผ€็€็š„
image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


I feel like I canโ€™t use process.env.QWEN_ENABLE_SEARCH directly here, right? Does this solution fail in client request mode?

True, but Qwen client requests are disabled

checkModel: 'qwen-turbo-latest',
description:
'้€šไน‰ๅƒ้—ฎๆ˜ฏ้˜ฟ้‡Œไบ‘่‡ชไธป็ ”ๅ‘็š„่ถ…ๅคง่ง„ๆจก่ฏญ่จ€ๆจกๅž‹๏ผŒๅ…ทๆœ‰ๅผบๅคง็š„่‡ช็„ถ่ฏญ่จ€็†่งฃๅ’Œ็”Ÿๆˆ่ƒฝๅŠ›ใ€‚ๅฎƒๅฏไปฅๅ›ž็ญ”ๅ„็ง้—ฎ้ข˜ใ€ๅˆ›ไฝœๆ–‡ๅญ—ๅ†…ๅฎนใ€่กจ่พพ่ง‚็‚น็œ‹ๆณ•ใ€ๆ’ฐๅ†™ไปฃ็ ็ญ‰๏ผŒๅœจๅคšไธช้ข†ๅŸŸๅ‘ๆŒฅไฝœ็”จใ€‚',
disableBrowserRequest: true,
id: 'qwen',


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.
image

@Sun-drenched
Copy link

Sun-drenched commented Jan 13, 2025

ๆ„Ÿ่ง‰ไธ่ƒฝ็›ดๆŽฅๅœจ่ฟ™้‡Œ็”จ process.env.QWEN_ENABLE_SEARCH ๅง๏ผŸๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆจกๅผไธ‹่ฟ™ไธชๆ–นๆกˆๅฐฑๅคฑๆ•ˆไบ†๏ผŸ

็กฎๅฎž๏ผŒไฝ†ๆ˜ฏ Qwen ๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆ˜ฏ็ฆ็”จ็š„

checkModel: 'qwen-turbo-latest',
description:
'้€šไน‰ๅƒ้—ฎๆ˜ฏ้˜ฟ้‡Œไบ‘่‡ชไธป็ ”ๅ‘็š„่ถ…ๅคง่ง„ๆจก่ฏญ่จ€ๆจกๅž‹๏ผŒๅ…ทๆœ‰ๅผบๅคง็š„่‡ช็„ถ่ฏญ่จ€็†่งฃๅ’Œ็”Ÿๆˆ่ƒฝๅŠ›ใ€‚ๅฎƒๅฏไปฅๅ›ž็ญ”ๅ„็ง้—ฎ้ข˜ใ€ๅˆ›ไฝœๆ–‡ๅญ—ๅ†…ๅฎนใ€่กจ่พพ่ง‚็‚น็œ‹ๆณ•ใ€ๆ’ฐๅ†™ไปฃ็ ็ญ‰๏ผŒๅœจๅคšไธช้ข†ๅŸŸๅ‘ๆŒฅไฝœ็”จใ€‚',
disableBrowserRequest: true,
id: 'qwen',

ๅŽ็ปญๆœ‰่ฎกๅˆ’ๅฎž็Žฐไธ€ไธชๅผ€ๅ…ณๆŽงๅˆถ่ฟ™็ฑปๆ‰ฉๅฑ•ๅŠŸ่ƒฝๅ˜›๏ผŒHunyuan ๅ’Œ Minimax ๅ…ถๅฎžไนŸๆœ‰็ฑปไผผๅŠŸ่ƒฝ๏ผŒๅฆ‚ Hunyuan ้ป˜่ฎคๆ˜ฏๅผ€็€็š„ image

ๆ„Ÿ่ง‰ๅฏไปฅๆŠŠๆ‰ฉๅฑ•ๅŠŸ่ƒฝ้€‰้กนใ€้šๆœบๆ€งๅ‚ๆ•ฐใ€ๅŽ†ๅฒๆถˆๆฏๆ•ฐ้™ๅˆถๅ‚ๆ•ฐๅ’Œๆจกๅž‹็ป‘ๅฎšใ€‚ๆœ‰ไธคไธชๅœบๆ™ฏ้œ€ๆฑ‚
1.็”จๆˆทๅœจ้šไพฟ่Š่Šๆˆ–ๅ…ถไป–ๅŠฉๆ‰‹ๅค„ๆทท็”จไธๅŒๆไพ›ๅ•†็š„ๅคงๆจกๅž‹๏ผŒ่ฟ™ไบ›ๅคงๆจกๅž‹ๅฏน้šๆœบๆ€งๅ‚ๆ•ฐ็š„ๆ•ๆ„Ÿๆ€งไธๅŒ๏ผŒๆฏ”ๅฆ‚openai็š„ๆจกๅž‹้šๆœบๆ€ง่ถ…่ฟ‡1ๅฐฑๅฎนๆ˜“ๅ‡บ่พ“ๅ‡บไนฑ็ ใ€่ƒก่จ€ไนฑ่ฏญ็š„้—ฎ้ข˜๏ผŒไฝ†ๆ˜ฏdeepseekๅฎ˜ๆ–นๆŒ‡ๅผ•้€š็”จๅฏน่ฏๅบ”ๅฝ“ๆŠŠtemperature่ฎพ็ฝฎไธบ1.3๏ผŒ็ฟป่ฏ‘1.5ใ€๏ผˆๅฝ“็„ถ่ฟ™ไธช้—ฎ้ข˜ไนŸๅฏไปฅๅˆๅนถๅˆฐ#2726 ไธญๆๅ‡บ็š„้ข„่ฎพ่พ“ๅ‡บ้ฃŽๆ ผ้…็ฝฎไบคไบ’่งฃๅ†ณ๏ผ‰
2.ๅฆ‚ๆžœไธ€่ˆฌๆจกๅž‹ๆ— ๆณ•่งฃๅ†ณ้—ฎ้ข˜้œ€่ฆ่ฐƒ็”จๆŸไบ›้ซ˜ไปทๆจกๅž‹ๆ—ถ็ปง็ปญๆฒฟ็”จไธ€่ˆฌๆจกๅž‹็š„ๅŽ†ๅฒๆถˆๆฏ้™ๅˆถ๏ผŒๅฎนๆ˜“ไบง็”Ÿ่ฟ‡ๅคšๆถˆ่ดน๏ผ›ๆ›ดๆ”นๆจกๅž‹ๅ‰ๅŽๆ‰‹ๅŠจ่ฐƒๆ•ด้™ๅˆถๅˆ็•ฅๆ˜พ็น็ใ€‚

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


I feel like I canโ€™t use process.env.QWEN_ENABLE_SEARCH directly here, right? Does this solution fail in client request mode?

True, but Qwen client requests are disabled

checkModel: 'qwen-turbo-latest',
description:
'้€šไน‰ๅƒ้—ฎๆ˜ฏ้˜ฟ้‡Œไบ‘่‡ชไธป็ ”ๅ‘็š„่ถ…ๅคง่ง„ๆจก่ฏญ่จ€ๆจกๅž‹๏ผŒๅ…ทๆœ‰ๅผบๅคง็š„่‡ช็„ถ่ฏญ่จ€็†่งฃๅ’Œ็”Ÿๆˆ่ƒฝๅŠ›ใ€‚ๅฎƒๅฏไปฅๅ›ž็ญ”ๅ„็ง้—ฎ้ข˜ใ€ๅˆ›ไฝœๆ–‡ๅญ—ๅ†…ๅฎนใ€่กจ่พพ่ง‚็‚น็œ‹ๆณ•ใ€ๆ’ฐๅ†™ไปฃ็ ็ญ‰๏ผŒๅœจๅคšไธช้ข†ๅŸŸๅ‘ๆŒฅไฝœ็”จใ€‚',
disableBrowserRequest: true,
id: 'qwen',

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. ![image](https://private-user-images.githubusercontent.com/58100052/402430282-bed5495e-0f92-49f0-8 ae3-58d7de1cf447.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoic mF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzY3NTE1MTUsIm5iZiI6MTczNjc1MTIxNSw icGF0aCI6Ii81ODEwMDA1Mi80MDI0MzAyODItYmVkNTQ5NWUtMGY5Mi00OWYwLThhZTMtNThkN2RlMWNmNDQ3LnBuZz9YLUFtei 1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAx MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTEzVDA2NTMzNVomWC1BbXotRXhwaXJ lcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBhNTAyZjAxOWUxMGE4NGVmMzE4NmEzM2Y0ZWEyMjM4Y2E4MGY5ZDhjMWM0ODE4ZDkyZ mRlYWQzNTVjZjhlMTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HBYV9E0D3QqMJ50qTMwEsBUGo2dYrbFzgfH4E0w9yOA)

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

  1. Users use large models from different providers in Random Chat or other assistants. These large models have different sensitivities to randomness parameters. For example, if the randomness of OpenAIโ€™s model exceeds 1, it is easy to output garbled codes and nonsense. , but deepseek official guideline general dialogue should set the temperature to 1.3 and the translation to 1.5. (Of course, this problem can also be merged into the default output style configuration proposed in [Request] ้šไพฟ่Š่Š็•Œ้ขๅ’Œๆจกๅž‹้šๆœบๆ€ง้…็ฝฎ็š„ๆ”น่ฟ›ๅปบ่ฎฎย #2726 to solve the problem interactively)
  2. If the general model cannot solve the problem and you need to call some high-priced models, the historical message limits of the general model will be used, which will easily lead to excessive consumption; it is also cumbersome to manually adjust the limits before and after changing the model.

@arvinxx
Copy link
Contributor

arvinxx commented Jan 14, 2025

Qwen ๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆ˜ฏ็ฆ็”จ็š„

ๅฆ‚ๆžœๆ˜ฏ่ฟ™ๆ ท็š„่ฏๅ€’ๆฒก้—ฎ้ข˜

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Qwen client requests are disabled

If that's the case, that's fine.

@arvinxx arvinxx merged commit 0b19c20 into lobehub:main Jan 14, 2025
4 of 7 checks passed
@lobehubbot
Copy link
Member

โค๏ธ 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.
้กน็›ฎ็š„ๆˆ้•ฟ็ฆปไธๅผ€็”จๆˆทๅ้ฆˆๅ’Œ่ดก็Œฎ๏ผŒๆ„Ÿ่ฐขๆ‚จ็š„่ดก็Œฎ! ๅฆ‚ๆžœๆ‚จๅฏน LobeHub ๅผ€ๅ‘่€…็คพๅŒบๆ„Ÿๅ…ด่ถฃ๏ผŒ่ฏทๅŠ ๅ…ฅๆˆ‘ไปฌ็š„ discord๏ผŒ็„ถๅŽ็งไฟก @arvinxx ๆˆ– @canisminor1990ใ€‚ไป–ไปฌไผš้‚€่ฏทๆ‚จๅŠ ๅ…ฅๆˆ‘ไปฌ็š„็งๅฏ†ๅผ€ๅ‘่€…้ข‘้“ใ€‚ๆˆ‘ไปฌๅฐ†ไผš่ฎจ่ฎบๅ…ณไบŽ Lobe Chat ็š„ๅผ€ๅ‘๏ผŒๅˆ†ไบซๅ’Œ่ฎจ่ฎบๅ…จ็ƒ่Œƒๅ›ดๅ†…็š„ AI ๆถˆๆฏใ€‚

github-actions bot pushed a commit that referenced this pull request Jan 14, 2025
### [Version&nbsp;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>
@lobehubbot
Copy link
Member

๐ŸŽ‰ This PR is included in version 1.45.12 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Jan 14, 2025
### [Version&nbsp;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>
@hezhijie0327 hezhijie0327 deleted the qwen branch January 15, 2025 11:42
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Jan 22, 2025
โ€ฆ#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`
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Jan 22, 2025
### [Version&nbsp;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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ› Bug Something isn't working | ็ผบ้™ท released size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
5 participants