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

♻️ refactor: refactor Wenxin with LobeOpenAICompatibleFactory #5729

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Feb 4, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

  1. Wenxin 切回 LobeOpenAICompatibleFactory,使用 v2 接口(https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Fm2vrveyu#%E5%9C%A8%E7%BA%BF%E8%B0%83%E8%AF%95)
  2. 修复 v2 接口下模型 ID 问题(模型 ID 均为小写)
  3. 启用客户端请求模式
  4. 更新文档 [TODO]
  5. 更新模型列表 [TODO]

Note:

  1. 部分工具调用存在兼容性问题(不支持函数名包含 -,如 realtime-weather____fetchCurrentWeather
  2. deepseek-v3, deepseek-r1 限时免费
    image

📝 补充信息 | Additional Information

功能 截图
对话 image
工具调用 image
客户端请求 image

API Key 获取方法:
https://console.bce.baidu.com/iam/#/iam/apikey/list
image


close #5720

Copy link

vercel bot commented Feb 4, 2025

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

A member of the Team first needs to authorize it.

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

👍 @hezhijie0327

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

gru-agent bot commented Feb 4, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 0c06212 ✅ Finished

Files

File Pull Request
src/config/llm.ts 🟢 Open #5734
src/services/_auth.ts 🟢 Open #5735
src/store/user/slices/modelList/selectors/keyVaults.ts 🟢 Open #5733

Tip

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

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

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

Project coverage is 92.30%. Comparing base (3499403) to head (4c03422).
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    #5729      +/-   ##
==========================================
+ Coverage   92.11%   92.30%   +0.18%     
==========================================
  Files         648      646       -2     
  Lines       58199    58202       +3     
  Branches     2913     2712     -201     
==========================================
+ Hits        53612    53723     +111     
+ Misses       4587     4479     -108     
Flag Coverage Δ
app 92.30% <98.77%> (+0.18%) ⬆️
server 98.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.

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] 百度千帆模型不支持 deepseek-r1、deepseek-v3
2 participants