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 ModelFetcher for supported provider #5316

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Jan 6, 2025

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

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

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

  1. ่กฅ้ฝๆ‰€ๆœ‰ๆ”ฏๆŒไปŽ v1/models ่Žทๅ–ๆจกๅž‹ๅˆ—่กจ็š„ๆไพ›ๅ•†
  2. ็งป้™คไธๆ”ฏๆŒ/ๆš‚ๆ— ้€‚้…ๆจกๅž‹ๅˆ—่กจ็š„ไพ›ๅบ”ๅ•†้…็ฝฎไธญ็š„ showModelFetcher
azureOpenai, bedrock, huggingface, hunyuan, minimax, perplexity, spark, taichu, upstage, wenxin
  1. ๆ›ดๆ–ฐ Ai360, Taichu, GiteeAI, Zhipu, Upstage ้ป˜่ฎคๆจกๅž‹ๅˆ—่กจ๏ผŒ้€‚้… aiModels

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

ๆไพ›ๅ•† ๆ•ˆๆžœๆˆชๅ›พ
Ai360 image
DeepSeek image
InternLM image
Moonshot image
Stepfun image
ZeroOne image
Qwen image
xAI
Groq image
Mistral image
FireworksAI image
GiteeAI image
SiliconCloud image
Baichuan image
SenseNova image
Zhipu image
Anthropic image
Google image

Copy link

vercel bot commented Jan 6, 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:L This PR changes 100-499 lines, ignoring generated files. label Jan 6, 2025
@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 Jan 6, 2025
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 54.62329% with 265 lines in your changes missing coverage. Please review.

Project coverage is 91.22%. Comparing base (2c3331a) to head (de09627).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/siliconcloud/index.ts 26.47% 25 Missing โš ๏ธ
src/libs/agent-runtime/anthropic/index.ts 33.33% 24 Missing โš ๏ธ
src/libs/agent-runtime/google/index.ts 42.50% 23 Missing โš ๏ธ
src/libs/agent-runtime/sensenova/index.ts 28.57% 20 Missing โš ๏ธ
src/libs/agent-runtime/giteeai/index.ts 32.14% 19 Missing โš ๏ธ
src/libs/agent-runtime/groq/index.ts 34.48% 19 Missing โš ๏ธ
src/libs/agent-runtime/zhipu/index.ts 45.71% 19 Missing โš ๏ธ
src/libs/agent-runtime/baichuan/index.ts 42.85% 16 Missing โš ๏ธ
src/libs/agent-runtime/qwen/index.ts 36.00% 16 Missing โš ๏ธ
src/libs/agent-runtime/ai360/index.ts 45.83% 13 Missing โš ๏ธ
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5316      +/-   ##
==========================================
- Coverage   91.70%   91.22%   -0.49%     
==========================================
  Files         591      591              
  Lines       46060    46562     +502     
  Branches     4179     2635    -1544     
==========================================
+ Hits        42240    42476     +236     
- Misses       3820     4086     +266     
Flag Coverage ฮ”
app 91.22% <54.62%> (-0.49%) โฌ‡๏ธ
server 98.01% <รธ> (รธ)

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
Copy link
Contributor

arvinxx commented Jan 6, 2025

็ญ‰ #5158 ๅˆๅนถๅŽๅ†ๆ PR ๅ“ˆ๏ผŒ่ฟ‘ๆœŸไธๅ†ๆŽฅๅ—็Žฐๆœ‰็š„ provider ๅ˜ๆ›ด็š„PRใ€‚็ญ‰ #5158 ๅˆๅนถๅŽๅ†ๆ~

@lobehubbot
Copy link
Member

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


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~

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jan 7, 2025
@hezhijie0327
Copy link
Contributor Author

@arvinxx ๆ”น้€ ๅฅฝไบ†๏ผŒ็†่ฎบไธŠๆ‰€ๆœ‰่ƒฝ้€‚้…็š„๏ผŒ้ƒฝๆ”ฏๆŒ่‡ชๅŠจ่Žทๅ–ๆจกๅž‹ๅˆ—่กจไบ†๏ฝž

@lobehubbot
Copy link
Member

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


@arvinxx The transformation has been completed. In theory, everything that can be adapted supports automatically obtaining the model list~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ’„ Design Design an style | ๆ ทๅผ้—ฎ้ข˜ size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants