-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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: support minimax as provider #2087
Conversation
@lwshen is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @lwshen Thank you for raising your pull request and contributing to our Community |
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.
感谢贡献!整体看下来没啥太大问题,个别自动生成的翻译需要调整下~
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2087 +/- ##
==========================================
+ Coverage 92.54% 92.62% +0.07%
==========================================
Files 286 289 +3
Lines 16152 16416 +264
Branches 1868 1908 +40
==========================================
+ Hits 14948 15205 +257
- Misses 1204 1211 +7 ☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@lwshen 我测了下 apikey 的余额不足的情况下,没有抛错: 这个是api接口本身就这样,没有返回错误码,还是实现问题? |
试了一下 api key 失效的情况,api 依旧返回了 200 的状态码 |
这有点离谱… 有可能做兼容吗? |
This is a bit outrageous... Is it possible to do compatibility? |
更新了一下代码。 本来打算直接从 openai response 中读取内容,但是 api 返回的不是 SSE 格式,读取不到里面的内容。 因此,实现了一个
|
8b2530e
to
7a954b3
Compare
@lwshen rebase 下 main ,其他我测下来没问题了~ |
@lwshen rebase main and I have tested the others and everything is fine~ |
@arvinxx done |
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.
LGTM now, I'll merge it. Thanks for your hard working! I'm really appraciate your great contribution! 👏
❤️ Great PR @lwshen ❤️ 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 0.151.0](v0.150.10...v0.151.0) <sup>Released on **2024-04-29**</sup> #### ✨ Features - **misc**: Support minimax as a new provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support minimax as a new provider, closes [#2087](#2087) ([00abd82](00abd82)) </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 0.151.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.31.0](v1.30.6...v1.31.0) <sup>Released on **2024-04-29**</sup> #### ✨ Features - **misc**: Support minimax as a new provider. #### 💄 Styles - **misc**: Improve Inbox Assistant Welcome Guide. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support minimax as a new provider, closes [lobehub#2087](https://github.com/bentwnghk/lobe-chat/issues/2087) ([00abd82](00abd82)) #### Styles * **misc**: Improve Inbox Assistant Welcome Guide, closes [lobehub#2086](https://github.com/bentwnghk/lobe-chat/issues/2086) ([df37212](df37212)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* add minimax as provider * add i18n token * update * update * Revert "add i18n token" This reverts commit 4be6d67. * add i18n token * add doc * update i18n * implement MinimaxStream * use fetchSSE function * fix TypeError and SyntaxError * add unit test * add agent runtime * add debug log * use fetch function directly * refactor(minimax): streamline response parsing logic * remove redundant error response check * fix code style
* add minimax as provider * add i18n token * update * update * Revert "add i18n token" This reverts commit 4be6d67. * add i18n token * add doc * update i18n * implement MinimaxStream * use fetchSSE function * fix TypeError and SyntaxError * add unit test * add agent runtime * add debug log * use fetch function directly * refactor(minimax): streamline response parsing logic * remove redundant error response check * fix code style
* add minimax as provider * add i18n token * update * update * Revert "add i18n token" This reverts commit 4be6d67. * add i18n token * add doc * update i18n * implement MinimaxStream * use fetchSSE function * fix TypeError and SyntaxError * add unit test * add agent runtime * add debug log * use fetch function directly * refactor(minimax): streamline response parsing logic * remove redundant error response check * fix code style
## [Version 0.151.0](lobehub/lobe-chat@v0.150.10...v0.151.0) <sup>Released on **2024-04-29**</sup> #### ✨ Features - **misc**: Support minimax as a new provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support minimax as a new provider, closes [lobehub#2087](lobehub#2087) ([00abd82](lobehub@00abd82)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* add minimax as provider * add i18n token * update * update * Revert "add i18n token" This reverts commit 4be6d67. * add i18n token * add doc * update i18n * implement MinimaxStream * use fetchSSE function * fix TypeError and SyntaxError * add unit test * add agent runtime * add debug log * use fetch function directly * refactor(minimax): streamline response parsing logic * remove redundant error response check * fix code style
## [Version 0.151.0](lobehub/lobe-chat@v0.150.10...v0.151.0) <sup>Released on **2024-04-29**</sup> #### ✨ Features - **misc**: Support minimax as a new provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Support minimax as a new provider, closes [lobehub#2087](lobehub#2087) ([00abd82](lobehub@00abd82)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
Support model provider: Minimax
close #1053
minimax-demo.mp4
📝 补充信息 | Additional Information