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 sensenova with LobeOpenAICompatibleFactory #5116

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Dec 21, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

SenseNova 已支持 API Key 的方式,切换实现为 LobeOpenAICompatibleFactory

https://console.sensecore.cn/aistudio/management/api-key

模块 效果
对话 image
工具调用 image

📝 补充信息 | Additional Information

image

image

Copy link

vercel bot commented Dec 21, 2024

@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 Dec 21, 2024
@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 Dec 21, 2024

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 7d6697c ✅ Finished

Files

File Pull Request
src/config/llm.ts ❌ Failure (I failed to write the unit tests for the file.)
src/libs/agent-runtime/sensenova/index.ts ❌ Failure (I failed to write the unit tests for the file.)
src/server/modules/AgentRuntime/index.ts 🟢 Open #5117
src/services/_auth.ts ❌ Failure (I failed to write the unit tests for the file.)
src/store/user/slices/modelList/selectors/keyVaults.ts ❌ Failure (I failed to write the unit tests for the file.)
src/store/user/slices/modelList/selectors/modelConfig.ts ❌ Failure (I failed to write the unit tests for the file.)

Tip

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

Copy link

codecov bot commented Dec 21, 2024

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.22%. Comparing base (0361ced) to head (7d6697c).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/AgentRuntime.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5116      +/-   ##
==========================================
+ Coverage   92.18%   92.22%   +0.03%     
==========================================
  Files         549      548       -1     
  Lines       41575    41433     -142     
  Branches     3734     2514    -1220     
==========================================
- Hits        38327    38210     -117     
+ Misses       3248     3223      -25     
Flag Coverage Δ
app 92.22% <96.29%> (+0.03%) ⬆️
server 97.65% <ø> (ø)

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.

Copy link

vercel bot commented Dec 21, 2024

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 Dec 21, 2024 3:23pm

@arvinxx arvinxx merged commit 5656f39 into lobehub:main Dec 25, 2024
9 of 10 checks passed
@lobehubbot
Copy link
Member

❤️ 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.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Dec 25, 2024
### [Version&nbsp;1.39.2](v1.39.1...v1.39.2)
<sup>Released on **2024-12-25**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor sensenova provider with LobeOpenAICompatibleFactory.

<br/>

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

#### Code refactoring

* **misc**: Refactor sensenova provider with LobeOpenAICompatibleFactory, closes [#5116](#5116) ([5656f39](5656f39))

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

The release is available on:

Your semantic-release bot 📦🚀

@hezhijie0327 hezhijie0327 deleted the sensenova_oai branch December 25, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants