Skip to content

Conversation

@sxjeru
Copy link
Contributor

@sxjeru sxjeru commented Jan 16, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

继承自 #3055

貌似 Azure 的实现方式有一定改变,原本已经实现的功能目前均未实现。

已可正常聊天。

  • 豆包大模型采用独立模型终结点,通过环境变量 DOUBAO_MODEL_LIST 添加
  • 连通性测试使用经环境变量添加的模型
  • 可通过设置页 添加/编辑 豆包大模型部署名

📝 补充信息 | Additional Information

@vercel
Copy link

vercel bot commented Jan 16, 2025

@sxjeru is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @sxjeru

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
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/llm 路径下不再做任何变更

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分大概旧版设置页(/settings/llm)还在用吧,貌似本地调试还没有更新到服务端数据库在用的 /settings/provider

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本地的话需要配置 NEXT_PUBLIC_CLIENT_DB=pglite 开启新版,估计再迭代 2~3 个中版本,client db 就准备全量迁移 pglite 了。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我已升级到v1.51.12,但大模型列表中没有豆包选项,请问任何开启?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果不是服务端数据库版本,需要在环境变量添加 NEXT_PUBLIC_CLIENT_DB=pglite

@arvinxx
Copy link
Member

arvinxx commented Jan 17, 2025

貌似 Azure 的实现方式有一定改变,原本已经实现的功能目前均未实现。

只有传递的参数调整了,其他都没调整,可以看下 Azure 的实现,应该基本可以复用的

@lobehubbot
Copy link
Member

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


It seems that the implementation method of Azure has changed to some extent, and none of the functions that were originally implemented are currently implemented.

Only the passed parameters have been adjusted, and nothing else has been adjusted. You can take a look at Azure's implementation. It should be basically reusable.

@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 97.58065% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.15%. Comparing base (2734cf3) to head (a40fc83).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/AgentRuntime.ts 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5481      +/-   ##
==========================================
- Coverage   92.17%   92.15%   -0.02%     
==========================================
  Files         640      648       +8     
  Lines       56962    57494     +532     
  Branches     2884     4262    +1378     
==========================================
+ Hits        52506    52985     +479     
- Misses       4456     4509      +53     
Flag Coverage Δ
app 92.15% <97.58%> (-0.02%) ⬇️
server 98.01% <ø> (+0.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.

@sxjeru sxjeru marked this pull request as ready for review January 24, 2025 01:56
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🌠 Feature Request labels Jan 24, 2025
@vercel
Copy link

vercel bot commented Jan 27, 2025

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

Name Status Preview Comments Updated (UTC)
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2025 2:46am

@arvinxx arvinxx merged commit d8afe47 into lobehub:main Jan 27, 2025
6 of 8 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @sxjeru ❤️

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 Jan 27, 2025
## [Version&nbsp;1.49.0](v1.48.4...v1.49.0)
<sup>Released on **2025-01-27**</sup>

#### ✨ Features

- **misc**: Support Doubao Models.

<br/>

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

#### What's improved

* **misc**: Support Doubao Models, closes [#5481](#5481) ([d8afe47](d8afe47))

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

The release is available on:

Your semantic-release bot 📦🚀

@sxjeru sxjeru deleted the doubao2 branch January 28, 2025 04:46
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Jan 28, 2025
* feat(config): add Doubao provider

* fix

* fix

* add

* fix

* fix

* src/server/globalConfig/index.ts

* src/app/(main)/settings/provider/(detail)/doubao/page.tsx

* fix

* try

* try

* rec

* follow review

* test

* 👌try

* Update doubao.ts

* Update index.ts

* Delete src/app/(main)/settings/llm/ProviderList/Doubao/index.tsx

* Update providers.tsx

* Update providers.tsx

---------

Co-authored-by: Arvin Xu <[email protected]>
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Jan 28, 2025
## [Version&nbsp;1.49.0](lobehub/lobe-chat@v1.48.4...v1.49.0)
<sup>Released on **2025-01-27**</sup>

#### ✨ Features

- **misc**: Support Doubao Models.

<br/>

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

#### What's improved

* **misc**: Support Doubao Models, closes [lobehub#5481](lobehub#5481) ([d8afe47](lobehub@d8afe47))

</details>

<div align="right">

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

</div>
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Feb 1, 2025
* feat(config): add Doubao provider

* fix

* fix

* add

* fix

* fix

* src/server/globalConfig/index.ts

* src/app/(main)/settings/provider/(detail)/doubao/page.tsx

* fix

* try

* try

* rec

* follow review

* test

* 👌try

* Update doubao.ts

* Update index.ts

* Delete src/app/(main)/settings/llm/ProviderList/Doubao/index.tsx

* Update providers.tsx

* Update providers.tsx

---------

Co-authored-by: Arvin Xu <[email protected]>
gecsp pushed a commit to gecsp/lobe-chat that referenced this pull request Feb 1, 2025
## [Version&nbsp;1.49.0](lobehub/lobe-chat@v1.48.4...v1.49.0)
<sup>Released on **2025-01-27**</sup>

#### ✨ Features

- **misc**: Support Doubao Models.

<br/>

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

#### What's improved

* **misc**: Support Doubao Models, closes [lobehub#5481](lobehub#5481) ([d8afe47](lobehub@d8afe47))

</details>

<div align="right">

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

</div>
@xiaolee9897
Copy link

请问遇到这个问题需要如何处理?

请求 豆包 服务出错,请根据以下信息排查或重试
Show Details
json
{
"error": {
"code": "MissingParameter",
"message": "The request failed because it is missing one or multiple required parameters. Request id: 021739169170196945ada8e478a29a2419a74b62ea11110b141fc",
"param": "",
"type": "BadRequest"
},
"endpoint": "https://ark.cn-beijing.volces.com/api/v3",
"provider": "doubao"
}

@sxjeru
Copy link
Contributor Author

sxjeru commented Feb 10, 2025

@xiaolee9897 麻烦把这个提成一个 issue 吧,可以说一下在用哪个模型。

@lobehubbot
Copy link
Member

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


@xiaolee9897 Please make this an issue, let me tell you which model you are using.

ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
* feat(config): add Doubao provider

* fix

* fix

* add

* fix

* fix

* src/server/globalConfig/index.ts

* src/app/(main)/settings/provider/(detail)/doubao/page.tsx

* fix

* try

* try

* rec

* follow review

* test

* 👌try

* Update doubao.ts

* Update index.ts

* Delete src/app/(main)/settings/llm/ProviderList/Doubao/index.tsx

* Update providers.tsx

* Update providers.tsx

---------

Co-authored-by: Arvin Xu <[email protected]>
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
## [Version&nbsp;1.49.0](lobehub/lobe-chat@v1.48.4...v1.49.0)
<sup>Released on **2025-01-27**</sup>

#### ✨ Features

- **misc**: Support Doubao Models.

<br/>

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

#### What's improved

* **misc**: Support Doubao Models, closes [lobehub#5481](lobehub#5481) ([d8afe47](lobehub@d8afe47))

</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

Development

Successfully merging this pull request may close these issues.

5 participants