-
-
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
๐ style: add ModelFetcher
for supported provider
#5316
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 #5316 +/- ##
==========================================
- Coverage 92.64% 92.20% -0.44%
==========================================
Files 639 639
Lines 56076 56776 +700
Branches 2686 4039 +1353
==========================================
+ Hits 51949 52348 +399
- Misses 4127 4428 +301
Flags with carried forward coverage won't be shown. Click here to find out more. โ View full report in Codecov by Sentry. |
Wait until #5158 is merged before submitting a PR. PRs for existing provider changes will no longer be accepted in the near future. Will mention it again after #5158 is merged~ |
This reverts commit 049662d.
@arvinxx ๆน้ ๅฅฝไบ๏ผ็่ฎบไธๆๆ่ฝ้้ ็๏ผ้ฝๆฏๆ่ชๅจ่ทๅๆจกๅๅ่กจไบ๏ฝ |
@arvinxx The transformation has been completed. In theory, everything that can be adapted supports automatically obtaining the model list~ |
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
|
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.
LOBE_DEFAULT_MODEL_LIST
้่ฆไป aiModels ๅผๅ
ฅ๏ผๅ็ปญ modelProviders ้็่ฟไธชๅ้ไผ่ขซๅ ้ค
ๅ
จ้จๅๆขๅฐ |
All switched to |
@@ -3,7 +3,7 @@ import utc from 'dayjs/plugin/utc'; | |||
import OpenAI, { ClientOptions } from 'openai'; | |||
import { Stream } from 'openai/streaming'; | |||
|
|||
import { LOBE_DEFAULT_MODEL_LIST } from '@/config/modelProviders'; |
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.
่ฟ้ๅ ไธๆน๏ผ้่ฆๅ ผๅฎนๅๆๅฎ็ฐ๏ผ็ญV2ๅๆน
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.
ๅทฒๅ้
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.
ๅๆไฝฟ็จ LOBE_DEFAULT_MODEL_LIST ็ๅฐๆน้่ฆไฟๆ็ฐ็ถ๏ผ็จไปฅๅ ผๅฎนๆง็ๅฎ็ฐใๆๆๆฐๅข้ฝ่ตฐ aiModels
ๅฅฝไบ๏ผๅทฒๅ้ |
OK, rolled back |
* Update moonshot.ts * Update index.ts * Update moonshot.ts
โค๏ธ 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.47.13](v1.47.12...v1.47.13) <sup>Released on **2025-01-21**</sup> #### ๐ Styles - **misc**: Add `ModelFetcher` for supported providers. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add `ModelFetcher` for supported providers, closes [#5316](#5316) [#252](#252) ([a189c81](a189c81)) </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.47.13 ๐ The release is available on: Your semantic-release bot ๐ฆ๐ |
### [Version 1.89.7](v1.89.6...v1.89.7) <sup>Released on **2025-01-21**</sup> #### ๐ Styles - **misc**: Add `ModelFetcher` for supported providers. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add `ModelFetcher` for supported providers, closes [lobehub#5316](https://github.com/bentwnghk/lobe-chat/issues/5316) [lobehub#252](https://github.com/bentwnghk/lobe-chat/issues/252) ([a189c81](a189c81)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* ๐ style: add ModelFetcher for supported provider * ๐ style: add Mistral ModelFetcher support * ๐ style: add `glm-zero-preview` model for Zhipu * ๐ style: add more supported providers * ๐ style: add SenseNova & Baichuan support with custom models endpoint * ๐ fix: fix fc keyword typo, should lowercase * ๐ style: update aiModels list * โป๏ธ refactor: use aiModels sheme * Revert "โป๏ธ refactor: use aiModels sheme" (lobehub#252) This reverts commit 049662d. * ๐ fix: fix `firefunction` series not set as functionCall * ๐ style: add Zhipu FetchModel support * ๐ style: add Anthropic FetchModel support * ๐ style: add Google ModelFetch support * ๐ style: add HuggingFace ModelFetch support * ๐ fix: fix stepfun fc tag * โป๏ธ refactor: refactor `LOBE_DEFAULT_MODEL_LIST` import * ๐จ chore: revert some changes * ๐ fix: fix aiModels import * ๐ fix: fix CI error * ๐ style: add `MiniMax-Text-01` * ๐ style: add vision model support for Moonshot * Update moonshot.ts * Update index.ts * Update moonshot.ts
### [Version 1.47.13](lobehub/lobe-chat@v1.47.12...v1.47.13) <sup>Released on **2025-01-21**</sup> #### ๐ Styles - **misc**: Add `ModelFetcher` for supported providers. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Add `ModelFetcher` for supported providers, closes [lobehub#5316](lobehub#5316) [lobehub#252](lobehub#252) ([a189c81](lobehub@a189c81)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
๐ป ๅๆด็ฑปๅ | Change Type
๐ ๅๆด่ฏดๆ | Description of Change
v1/models
ๆ่ชๅฎไน Endpoint ่ทๅๆจกๅๅ่กจ็ๆไพๅshowModelFetcher
aiModels
MiniMax-Text-01
ๆจกๅ MiniMax-Text-01moonshot-v1-8k-vision-preview
่ง่งๆจกๅ๏ผๅนถ้้ vision
ๆ ็ญพ ไฝฟ็จ Kimi ่ง่งๆจกๅ๏ผVision๏ผ๐ ่กฅๅ ไฟกๆฏ | Additional Information