-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
♻️ refactor: Support disable clientFetch by default #3133
Conversation
@cy948 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
src/app/(main)/settings/llm/components/ProviderConfig/index.tsx
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3133 +/- ##
==========================================
+ Coverage 93.94% 93.99% +0.04%
==========================================
Files 390 390
Lines 24308 24314 +6
Branches 2770 1811 -959
==========================================
+ Hits 22837 22853 +16
+ Misses 1471 1461 -10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
fca7b43
to
fb3876c
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @cy948 ❤️ 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.3.4](v1.3.3...v1.3.4) <sup>Released on **2024-07-09**</sup> #### ♻ Code Refactoring - **misc**: Support disable clientFetch by default. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Support disable clientFetch by default, closes [#3133](#3133) [#3108](#3108) ([4415652](4415652)) </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.3.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.46.3](v1.46.2...v1.46.3) <sup>Released on **2024-07-09**</sup> #### ♻ Code Refactoring - **misc**: Support disable clientFetch by default. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Support disable clientFetch by default, closes [lobehub#3133](https://github.com/bentwnghk/lobe-chat/issues/3133) [lobehub#3108](https://github.com/bentwnghk/lobe-chat/issues/3108) ([4415652](4415652)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ♻️ refactor: Support disable clientFetch by modelConfig (lobehub#3108) * ✅ test: - clientfetch for qwen * ♻️ refactor: Remove `defaultShowBrowserRequest` in qwen modelConfig
### [Version 1.3.4](lobehub/lobe-chat@v1.3.3...v1.3.4) <sup>Released on **2024-07-09**</sup> #### ♻ Code Refactoring - **misc**: Support disable clientFetch by default. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Support disable clientFetch by default, closes [lobehub#3133](lobehub#3133) [lobehub#3108](lobehub#3108) ([4415652](lobehub@4415652)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ♻️ refactor: Support disable clientFetch by modelConfig (lobehub#3108) * ✅ test: - clientfetch for qwen * ♻️ refactor: Remove `defaultShowBrowserRequest` in qwen modelConfig
### [Version 1.3.4](lobehub/lobe-chat@v1.3.3...v1.3.4) <sup>Released on **2024-07-09**</sup> #### ♻ Code Refactoring - **misc**: Support disable clientFetch by default. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Support disable clientFetch by default, closes [lobehub#3133](lobehub#3133) [lobehub#3108](lobehub#3108) ([4415652](lobehub@4415652)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ♻️ refactor: Support disable clientFetch by modelConfig (lobehub#3108) * ✅ test: - clientfetch for qwen * ♻️ refactor: Remove `defaultShowBrowserRequest` in qwen modelConfig
### [Version 1.3.4](lobehub/lobe-chat@v1.3.3...v1.3.4) <sup>Released on **2024-07-09**</sup> #### ♻ Code Refactoring - **misc**: Support disable clientFetch by default. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Support disable clientFetch by default, closes [lobehub#3133](lobehub#3133) [lobehub#3108](lobehub#3108) ([4415652](lobehub@4415652)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/config/modelProviders/index.ts
: 从modelConfig
中判断是否允许“客户端请求”src/config/modelProviders/qwen.ts
: 默认禁用qwen
provider 的“客户端请求”;src/store/user/slices/modelList/selectors/modelConfig.ts
: 若modelProvider中禁用了provider的“客户端请求”,则不启用;src/store/user/slices/modelList/selectors/modelConfig.test.ts
: 测试 Qwen Provider 能否被拦截,即使其符合其它启用“客户端请求”的条件;📝 补充信息 | Additional Information