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 volcengine as a new provider #6221

Merged
merged 7 commits into from
Feb 16, 2025
Merged

✨ feat: add volcengine as a new provider #6221

merged 7 commits into from
Feb 16, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Feb 16, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

replace #6109

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Feb 16, 2025
Copy link

vercel bot commented Feb 16, 2025

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 Feb 16, 2025 4:24pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2025 4:24pm

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

Copy link

codecov bot commented Feb 16, 2025

Codecov Report

Attention: Patch coverage is 96.45390% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.66%. Comparing base (30e010f) to head (695681d).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/services/chat.ts 42.85% 4 Missing ⚠️
src/libs/agent-runtime/AgentRuntime.ts 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6221      +/-   ##
==========================================
+ Coverage   91.64%   91.66%   +0.01%     
==========================================
  Files         676      678       +2     
  Lines       61650    61781     +131     
  Branches     4485     3080    -1405     
==========================================
+ Hits        56502    56631     +129     
- Misses       5148     5150       +2     
Flag Coverage Δ
app 91.66% <96.45%> (+0.01%) ⬆️
server 97.90% <ø> (ø)

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.

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

gru-agent bot commented Feb 16, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 1436a1d 🚫 Skipped No files need to be tested {"src/config/aiModels/index.ts":"target file(src/config/aiModels/index.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/*.spec.js","src/config/aiModels/volcengine.ts":"target file(src/config/aiModels/volcengine.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js","src/config/modelProviders/index.ts":"target file(src/config/modelProviders/index.ts) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store \n exclude: node_modules,**/.test.ts,/*.test.tsx,/.spec.ts,**/.spec.tsx,/*.d.ts,/.test.js,**/.spec.js","src/config/modelProviders/volcengine.ts":"target file(src/config/modelProviders/volcengine.ts) not in work scope \n in…

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@arvinxx arvinxx changed the title add volcengine ✨ feat: add volcengine as a new provider Feb 16, 2025
@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 Feb 16, 2025
## [Version&nbsp;1.59.0](v1.58.0...v1.59.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add volcengine as a new provider.

<br/>

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

#### What's improved

* **misc**: Add volcengine as a new provider, closes [#6221](#6221) ([09bf8f0](09bf8f0))

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

The release is available on:

Your semantic-release bot 📦🚀

@O2lab-AI
Copy link

请问火山引擎的环境变量命名

@lobehubbot
Copy link
Member

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


Can you tell me about the naming of environmental variables of volcanic engines?

ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
* add volcengine

* add volcengine model

* fix

* add api key

* fix deployment name find bug

* add ability

* update i18n
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
## [Version&nbsp;1.59.0](lobehub/lobe-chat@v1.58.0...v1.59.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add volcengine as a new provider.

<br/>

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

#### What's improved

* **misc**: Add volcengine as a new provider, closes [lobehub#6221](lobehub#6221) ([09bf8f0](lobehub@09bf8f0))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@arvinxx
Copy link
Contributor Author

arvinxx commented Feb 17, 2025

@O2lab-AI volcengine api key 和 volcengine model list

@lobehubbot
Copy link
Member

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


@O2lab-AI volcengine api key and volcengine model list

@bytemain
Copy link

这个 pr 合了之后,以前配置过豆包那个 provider 的内容就无法更新了,点豆包进去的就是火山引擎的页面,没法看那个页面上的内容,看之前配置的 key 啥的,不过也是小问题

@lobehubbot
Copy link
Member

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


After this pr is combined, the content of the Doubao provider that has been configured before cannot be updated. The page of the Doubao is the Volcano Engine. I can't see the content on that page, the key configured before, etc., but it is also a small problem

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 17, 2025
## [Version&nbsp;1.101.0](v1.100.0...v1.101.0)
<sup>Released on **2025-02-17**</sup>

#### ✨ Features

- **misc**: Add SambaNova provider support, add volcengine as a new provider.

#### 🐛 Bug Fixes

- **misc**: Fix agent config not load correctly, fix loading on not login for db, fix model list issue in client mode, user feedback for empty/long group names in create/edit group modals.

#### 💄 Styles

- **misc**: Add o1 vision metadata, update Jina AI Provider name & model info.

<br/>

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

#### What's improved

* **misc**: Add SambaNova provider support, closes [lobehub#6218](https://github.com/bentwnghk/lobe-chat/issues/6218) ([a46eadf](a46eadf))
* **misc**: Add volcengine as a new provider, closes [lobehub#6221](https://github.com/bentwnghk/lobe-chat/issues/6221) ([09bf8f0](09bf8f0))

#### What's fixed

* **misc**: Fix agent config not load correctly, closes [lobehub#6252](https://github.com/bentwnghk/lobe-chat/issues/6252) ([fe9bc16](fe9bc16))
* **misc**: Fix loading on not login for db, closes [lobehub#6258](https://github.com/bentwnghk/lobe-chat/issues/6258) ([61692b9](61692b9))
* **misc**: Fix model list issue in client mode, closes [lobehub#6240](https://github.com/bentwnghk/lobe-chat/issues/6240) ([d6c6cda](d6c6cda))
* **misc**: User feedback for empty/long group names in create/edit group modals, closes [lobehub#6247](https://github.com/bentwnghk/lobe-chat/issues/6247) ([25c80d1](25c80d1))

#### Styles

* **misc**: Add o1 vision metadata, closes [lobehub#6263](https://github.com/bentwnghk/lobe-chat/issues/6263) ([261d068](261d068))
* **misc**: Update Jina AI Provider name & model info, closes [lobehub#6243](https://github.com/bentwnghk/lobe-chat/issues/6243) ([ddbe482](ddbe482))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@O2lab-AI
Copy link

@O2lab-AI volcengine api key 和 volcengine model list

Thank you very much

@AndSonder
Copy link

请问为什么 main 分支 vercel 部署的 lobehub 还是看不到火山引擎呢?

image

@arvinxx
Copy link
Contributor Author

arvinxx commented Feb 18, 2025

搜discussion

@lobehubbot
Copy link
Member

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


Search for discussion

@AndSonder
Copy link

搜discussion

@arvinxx 您好,vercel 添加环境变量后部署成功了,但是如果使用自定义域名就会报错,请问您部署 chat-preview 的时候有没有遇到类似的问题呢
image

{
  "message": "Failed to fetch",
  "name": "TypeError",
  "stack": "TypeError: Failed to fetch\n    at push.37040.constructor.fetchFsBundle (https://chat.xxxx.top/_next/static/chunks/87299-99ff20cb35b5111f.js:1:63322)\n    at v.loadDependencies (https://chat.xxxx.top/_next/static/chunks/87299-99ff20cb35b5111f.js:1:60476)\n    at https://chat.xxxx.top/_next/static/chunks/87299-99ff20cb35b5111f.js:1:61991\n    at v.initialize (https://chat.xxxx.top/_next/static/chunks/87299-99ff20cb35b5111f.js:1:62989)\n    at G (https://chat.xxxx.top/_next/static/chunks/87299-99ff20cb35b5111f.js:1:63730)\n    at Object.initializeClientDB (https://chat.xxxx.top/_next/static/chunks/app/%5Bvariants%5D/page-a15d19ccdae49244.js:1:16602)\n    at async https://chat.xxxx.top/_next/static/chunks/94712-ac45a90a40941aef.js:1:9393"
}

bentwnghk pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 20, 2025
* add volcengine

* add volcengine model

* fix

* add api key

* fix deployment name find bug

* add ability

* update i18n
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
* add volcengine

* add volcengine model

* fix

* add api key

* fix deployment name find bug

* add ability

* update i18n
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
## [Version&nbsp;1.59.0](lobehub/lobe-chat@v1.58.0...v1.59.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add volcengine as a new provider.

<br/>

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

#### What's improved

* **misc**: Add volcengine as a new provider, closes [lobehub#6221](lobehub#6221) ([09bf8f0](lobehub@09bf8f0))

</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
released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
5 participants