-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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 Spark model provider #3098
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
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 #3098 +/- ##
==========================================
- Coverage 91.83% 91.83% -0.01%
==========================================
Files 455 457 +2
Lines 30452 30557 +105
Branches 2116 1968 -148
==========================================
+ Hits 27965 28061 +96
- Misses 2487 2496 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
配置页面是不是应该改成 APIKey 和 APISecret 分开配置比较合适?不然用户很有可能会配错 |
Should the configuration page be changed to configure APIKey and APISecret separately? Otherwise, the user is likely to mismatch the |
Is it locale? Reference here to add i18n: |
放进去了 但是貌似没调用 不清楚哪里写错了 |
I put it in, but it doesn’t seem to be called. I’m not sure where I made the mistake. |
@hezhijie0327 dev没用还是prod没用?prod没用的话需要 |
@hezhijie0327 Is dev useless or prod useless? If prod is useless, you need npm run i18n to automatically generate locales in other languages. |
dev 下本地 Build,这应该是缺省值吧,缺少 locale 的话应该也能显示的吧。我先跑下 |
Local Build under dev, this should be the default value. If locale is missing, it should also be displayed. Let me run |
没,故意做成不显示的,不然发布版本默认兜底成中文的话,没法让开发者意识到要跑 locale: https://github.com/lobehub/lobe-chat/blob/main/src/locales/create.ts#L21-L25 这样一来 build 过的生产版本,如果没有 locale 必然就只会显示 locale key ,更容易发现没国际化的问题。 |
No, it is not displayed on purpose. Otherwise, if the release version defaults to Chinese, it will not make developers realize that they need to run locale: https://github.com/lobehub/lobe-chat/blob/main/src/locales /create.ts#L21-L25 In this way, the built production version will only display the locale key if there is no locale, making it easier to find problems without internationalization. |
|
|
FYI. |
❤️ 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.16.0](v1.15.35...v1.16.0) <sup>Released on **2024-09-10**</sup> #### ✨ Features - **misc**: Add Fireworks AI Model Provider, Add Spark model provider. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add Fireworks AI Model Provider, closes [#3392](#3392) [#48](#48) ([fa0d84d](fa0d84d)) * **misc**: Add Spark model provider, closes [#3098](#3098) [#25](#25) ([fc85c20](fc85c20)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.16.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.59.0](v1.58.16...v1.59.0) <sup>Released on **2024-09-11**</sup> #### ✨ Features - **misc**: Add Fireworks AI Model Provider, Add Spark model provider. #### 🐛 Bug Fixes - **misc**: Add `LLM_VISION_IMAGE_USE_BASE64` to support local s3 in vision model. #### 💄 Styles - **ui**: Improve UI layout and text. - **misc**: Reorder the provider list, Update CustomLogo, update spark check model to spark-lite & default disable useless model, update Upstage model list. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add Fireworks AI Model Provider, closes [lobehub#3392](https://github.com/bentwnghk/lobe-chat/issues/3392) [lobehub#48](https://github.com/bentwnghk/lobe-chat/issues/48) ([fa0d84d](fa0d84d)) * **misc**: Add Spark model provider, closes [lobehub#3098](https://github.com/bentwnghk/lobe-chat/issues/3098) [lobehub#25](https://github.com/bentwnghk/lobe-chat/issues/25) ([fc85c20](fc85c20)) #### What's fixed * **misc**: Add `LLM_VISION_IMAGE_USE_BASE64` to support local s3 in vision model, closes [lobehub#3887](https://github.com/bentwnghk/lobe-chat/issues/3887) ([16e57ed](16e57ed)) #### Styles * **ui**: Improve UI layout and text, closes [lobehub#3762](https://github.com/bentwnghk/lobe-chat/issues/3762) ([7c08f29](7c08f29)) * **misc**: Reorder the provider list, closes [lobehub#3886](https://github.com/bentwnghk/lobe-chat/issues/3886) ([4d641f5](4d641f5)) * **misc**: Update CustomLogo, closes [lobehub#3874](https://github.com/bentwnghk/lobe-chat/issues/3874) ([dd7c8df](dd7c8df)) * **misc**: Update spark check model to spark-lite & default disable useless model, closes [lobehub#3885](https://github.com/bentwnghk/lobe-chat/issues/3885) ([9d7e47c](9d7e47c)) * **misc**: Update Upstage model list, closes [lobehub#3890](https://github.com/bentwnghk/lobe-chat/issues/3890) ([82e2570](82e2570)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
基于 #2804 实现支持讯飞星火大模型
讯飞的 API 比较特殊,8月改用APIKey:APISecret
APIPassword
https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html#_3-%E8%AF%B7%E6%B1%82%E8%AF%B4%E6%98%8E
📝 补充信息 | Additional Information