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

๐Ÿ’„ style: add *_MODEL_LIST for Qwen and ZeroOne #3704

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

hezhijie0327
Copy link
Contributor

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

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

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

ๅขžๅŠ  QWEN_MODEL_LIST ๅŠ ZEROONE_MODEL_LIST ็Žฏๅขƒๅ˜้‡

Close #3694

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

docker run -it --rm -p 3210:3210 -e QWEN_MODEL_LIST="-all,+qwen-long" -e ZEROONE_MODEL_LIST="-all,+yi-large" lobe-chat:local

image
image

Copy link

vercel bot commented Aug 31, 2024

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

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Aug 31, 2024
@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 ๐Ÿ’„ Design Design an style | ๆ ทๅผ้—ฎ้ข˜ label Aug 31, 2024
Copy link

codecov bot commented Aug 31, 2024

Codecov Report

All modified and coverable lines are covered by tests โœ…

Project coverage is 91.77%. Comparing base (b95f70b) to head (085463f).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3704    +/-   ##
========================================
  Coverage   91.77%   91.77%            
========================================
  Files         450      450            
  Lines       29731    29756    +25     
  Branches     2910     1927   -983     
========================================
+ Hits        27285    27309    +24     
- Misses       2446     2447     +1     
Flag Coverage ฮ”
app 91.77% <100.00%> (+<0.01%) โฌ†๏ธ
server 97.46% <รธ> (รธ)

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.

@arvinxx arvinxx merged commit 05419dc into lobehub:main Sep 1, 2024
6 of 8 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 Sep 1, 2024
### [Version&nbsp;1.15.3](v1.15.2...v1.15.3)
<sup>Released on **2024-09-01**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, fix model info, update Claude 3.5 Sonnet maxOutput vaule.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, closes [#3704](#3704) ([05419dc](05419dc))
* **misc**: Fix model info, closes [#3696](#3696) ([4d98037](4d98037))
* **misc**: Update Claude 3.5 Sonnet maxOutput vaule, closes [#3705](#3705) ([685bd74](685bd74))

</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.15.3 ๐ŸŽ‰

The release is available on:

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

@SAnBlog
Copy link

SAnBlog commented Sep 1, 2024

image
้ป˜่ฎคๅฑ•็คบ*_MODEL_LISTๆœ‰ๆ•ˆๆžœ,ไฝ†ๆ˜ฏ่ฎพ็ฝฎ้‡Œๅนถๆฒกๆœ‰ๅฏนๆจกๅž‹ๅˆ—่กจ่ฟ›่กŒๅฑ่”ฝ,ไพๆ—งๅฏไปฅ้€‰ๆ‹ฉๅ…ถไป–ๆจกๅž‹?

@lobehubbot
Copy link
Member

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


image
The default display of *_MODEL_LIST is effective, but the model list is not blocked in the settings. Can I still choose other models?

@SAnBlog
Copy link

SAnBlog commented Sep 1, 2024

image ้ป˜่ฎคๅฑ•็คบ*_MODEL_LISTๆœ‰ๆ•ˆๆžœ,ไฝ†ๆ˜ฏ่ฎพ็ฝฎ้‡Œๅนถๆฒกๆœ‰ๅฏนๆจกๅž‹ๅˆ—่กจ่ฟ›่กŒๅฑ่”ฝ,ไพๆ—งๅฏไปฅ้€‰ๆ‹ฉๅ…ถไป–ๆจกๅž‹?

-allๅบ”่ฏฅๆ˜ฏๅฑ่”ฝๅ…ถไป–ๆจกๅž‹็š„้€‰ๆ‹ฉๅง?ๆˆ‘่ฎฐๅพ—ๆ–‡ๆกฃไธญๆ˜ฏ่ฟ™ไนˆๆ่ฟฐ็š„

@lobehubbot
Copy link
Member

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


![image](https://private-user-images.githubusercontent.com/29266796/363461629-0ab2e96b-8e23-4ac4-9b95-3937caa46d5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..1Rdx8 n3TTvPoTzAH4tKXWB23pWKmrBksO1Uj-aPzSUQ) The default display *_MODEL_LIST has The effect is good, but the model list is not blocked in the settings. Can I still select other models?

-all should be the option to block other models, right? I remember this is how it is described in the document

@hezhijie0327
Copy link
Contributor Author

@SAnBlog ่ฟ™ไธชๅฅฝๅƒๅšไธๅˆฐ๏ผŒไฝ†ๆ˜ฏๅฆ‚ๆžœไฝ ่ฆ้”ๆญปๆจกๅž‹ไธ่ฎฉ็”จๆˆทๆ”น็š„่ฏ๏ผŒๅผ•ๅ…ฅ FEATURE_FLAGS="-language_model_settings"

@hezhijie0327 hezhijie0327 deleted the modelList branch September 1, 2024 06:57
@lobehubbot
Copy link
Member

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


@SAnBlog This doesnโ€™t seem to be possible, but if you want to lock the model and prevent users from changing it, introduce FEATURE_FLAGS="-language_model_settings"

@SAnBlog
Copy link

SAnBlog commented Sep 1, 2024

@SAnBlog ่ฟ™ไธชๅฅฝๅƒๅšไธๅˆฐ๏ผŒไฝ†ๆ˜ฏๅฆ‚ๆžœไฝ ่ฆ้”ๆญปๆจกๅž‹ไธ่ฎฉ็”จๆˆทๆ”น็š„่ฏ๏ผŒๅผ•ๅ…ฅ FEATURE_FLAGS="-language_model_settings"

OpenAI้‚ฃ่พน่‡ชๅฎšไน‰ๆ˜ฏๅฏไปฅๅฑ่”ฝๅ…ถไป–็š„,ไฝ†ๆ˜ฏๅ…ถไป–ๆจกๅž‹ๅฅฝๅƒไธ่กŒ,ๅช่ƒฝ่ฟ™ๆ ทไบ†,่ฐข่ฐขไบ†

@lobehubbot
Copy link
Member

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


@SAnBlog This seems not possible, but if you want to lock the model and prevent users from changing it, introduce FEATURE_FLAGS="-language_model_settings"

OpenAI can block other customizations, but other models don't seem to work. This is the only way. Thank you.

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Sep 1, 2024
### [Version&nbsp;1.58.1](v1.58.0...v1.58.1)
<sup>Released on **2024-09-01**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, fix model info, update Claude 3.5 Sonnet maxOutput vaule.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, closes [lobehub#3704](https://github.com/bentwnghk/lobe-chat/issues/3704) ([05419dc](05419dc))
* **misc**: Fix model info, closes [lobehub#3696](https://github.com/bentwnghk/lobe-chat/issues/3696) ([4d98037](4d98037))
* **misc**: Update Claude 3.5 Sonnet maxOutput vaule, closes [lobehub#3705](https://github.com/bentwnghk/lobe-chat/issues/3705) ([685bd74](685bd74))

</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
๐Ÿ’„ Design Design an style | ๆ ทๅผ้—ฎ้ข˜ released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] ่ฏทๆฑ‚01 AIๅ’ŒQWENๅขžๅŠ MODEL_LIST้…็ฝฎ
4 participants