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

✨ feat: add wenxin model provider #4018

Merged
merged 16 commits into from
Sep 30, 2024
Merged

✨ feat: add wenxin model provider #4018

merged 16 commits into from
Sep 30, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Sep 19, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • ⚡️ perf
  • 📝 docs

🔀 变更说明 | Description of Change

增加文心一言 provider

📝 补充信息 | Additional Information

refs: #2794

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 6:37am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 6:37am

@lobehubbot
Copy link
Member

👍 @arvinxx

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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@LovelyGuYiMeng
Copy link
Contributor

LovelyGuYiMeng commented Sep 19, 2024

文心provider位置放到千问和混元中间吧

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Wenxin provider should be placed between Qianwen and iFlytek.

@vercel vercel bot temporarily deployed to Preview – lobe-chat-preview September 29, 2024 18:27 Inactive
Copy link

codecov bot commented Sep 29, 2024

Codecov Report

Attention: Patch coverage is 70.36082% with 115 lines in your changes missing coverage. Please review.

Project coverage is 92.28%. Comparing base (d05afb4) to head (669108b).
Report is 245 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/wenxin/index.ts 27.35% 77 Missing ⚠️
src/app/api/chat/wenxin/route.ts 50.00% 15 Missing ⚠️
src/services/_auth.ts 14.28% 12 Missing ⚠️
src/libs/agent-runtime/utils/streams/wenxin.ts 80.43% 9 Missing ⚠️
src/app/api/errorResponse.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4018      +/-   ##
==========================================
- Coverage   92.51%   92.28%   -0.24%     
==========================================
  Files         484      488       +4     
  Lines       34757    35169     +412     
  Branches     2294     3399    +1105     
==========================================
+ Hits        32154    32454     +300     
- Misses       2603     2715     +112     
Flag Coverage Δ
app 92.28% <70.36%> (-0.24%) ⬇️
server 97.37% <ø> (ø)

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 marked this pull request as ready for review September 30, 2024 02:19
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Model Provider 模型服务商 🌠 Feature Request New feature or request | 特性与建议 labels Sep 30, 2024
arvinxx and others added 2 commits September 30, 2024 02:50
* Update wenxin.ts

* Update wenxin.ts

* Update providers.tsx

* Update index.ts

* Update wenxin.ts
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Sep 30, 2024
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Sep 30, 2024
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

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 30, 2024
## [Version&nbsp;1.21.0](v1.20.8...v1.21.0)
<sup>Released on **2024-09-30**</sup>

#### ✨ Features

- **misc**: Add wenxin model provider.

<br/>

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

#### What's improved

* **misc**: Add wenxin model provider, closes [#4018](#4018) ([4483599](4483599))

</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.21.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

#### ✨ Features

- **misc**: Add wenxin model provider.

<br/>

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

#### What's improved

* **misc**: Add wenxin model provider, closes [lobehub#4018](https://github.com/bentwnghk/lobe-chat/issues/4018) ([4483599](4483599))

</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
🌠 Feature Request New feature or request | 特性与建议 Model Provider 模型服务商 released 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