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: Support Doubao Models #5481

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

✨ feat: Support Doubao Models #5481

wants to merge 16 commits into from

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 的实现方式有一定改变,原本已经实现的功能目前均未实现。

  • 豆包大模型采用独立模型终结点
  • 连通性测试使用经环境变量添加的模型

📝 补充信息 | Additional Information

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

src/app/(main)/settings/llm/ProviderList/Doubao/index.tsx Outdated Show resolved Hide resolved

// ref https://www.volcengine.com/docs/82379/1330310
const Doubao: ModelProviderCard = {
chatModels: [
Copy link
Contributor

Choose a reason for hiding this comment

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

chatModels 设为空数组

src/config/modelProviders/index.ts Outdated Show resolved Hide resolved
src/libs/agent-runtime/AgentRuntime.ts Outdated Show resolved Hide resolved
src/server/globalConfig/index.ts Show resolved Hide resolved
@arvinxx
Copy link
Contributor

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.

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

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

Project coverage is 92.18%. Comparing base (c971530) to head (41a6f3e).
Report is 2 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.16%   92.18%   +0.01%     
==========================================
  Files         640      643       +3     
  Lines       56859    57040     +181     
  Branches     2686     2687       +1     
==========================================
+ Hits        52403    52581     +178     
- Misses       4456     4459       +3     
Flag Coverage Δ
app 92.18% <98.35%> (+0.01%) ⬆️
server 97.99% <ø> (ø)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants