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 the agent runtime #6784

Merged
merged 5 commits into from
Mar 7, 2025
Merged

♻️ refactor: refactor the agent runtime #6784

merged 5 commits into from
Mar 7, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Mar 7, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

Copy link

vercel bot commented Mar 7, 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 Mar 7, 2025 5:55pm
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 5:55pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 5:55pm

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 7, 2025
@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
Contributor

gru-agent bot commented Mar 7, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail f88bdc8 🚫 Skipped No files need to be tested {"package.json":"target file(package.json) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/ \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,**/*.spec.js,src/database/server"}

Tip

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

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 72.46377% with 38 lines in your changes missing coverage. Please review.

Project coverage is 91.34%. Comparing base (3d3c2ce) to head (05bbd34).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/utils/openaiHelpers.ts 18.18% 18 Missing ⚠️
src/libs/agent-runtime/github/index.ts 15.00% 17 Missing ⚠️
...ent-runtime/utils/openaiCompatibleFactory/index.ts 72.72% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6784      +/-   ##
==========================================
+ Coverage   91.33%   91.34%   +0.01%     
==========================================
  Files         727      728       +1     
  Lines       68320    68362      +42     
  Branches     3300     3302       +2     
==========================================
+ Hits        62401    62448      +47     
+ Misses       5919     5914       -5     
Flag Coverage Δ
app 91.34% <72.46%> (+0.01%) ⬆️
server 97.57% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Mar 7, 2025
@arvinxx arvinxx changed the title 🔨 chore: bump version ♻️ refactor: refactor the agent runtime version Mar 7, 2025
@arvinxx arvinxx changed the title ♻️ refactor: refactor the agent runtime version ♻️ refactor: refactor the agent runtim Mar 7, 2025
@arvinxx arvinxx changed the title ♻️ refactor: refactor the agent runtim ♻️ refactor: refactor the agent runtime Mar 7, 2025
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 7, 2025
@arvinxx arvinxx merged commit 14a9874 into main Mar 7, 2025
30 checks passed
@arvinxx arvinxx deleted the refactor/runtime branch March 7, 2025 18:42
@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 Mar 7, 2025
### [Version&nbsp;1.69.2](v1.69.1...v1.69.2)
<sup>Released on **2025-03-07**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the agent runtime implement.

<br/>

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

#### Code refactoring

* **misc**: Refactor the agent runtime implement, closes [#6784](#6784) ([14a9874](14a9874))

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Mar 8, 2025
## [Version&nbsp;1.110.0](v1.109.4...v1.110.0)
<sup>Released on **2025-03-08**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the agent runtime implement.

#### ✨ Features

- **misc**: Support Anthropic Context Caching.

#### 💄 Styles

- **misc**: Add Gemini 2.0 Flash model variations, Add login ui for next-auth, Add Qwen QwQ model, add QwQ models.

<br/>

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

#### Code refactoring

* **misc**: Refactor the agent runtime implement, closes [lobehub#6784](https://github.com/bentwnghk/lobe-chat/issues/6784) ([14a9874](14a9874))

#### What's improved

* **misc**: Support Anthropic Context Caching, closes [lobehub#6704](https://github.com/bentwnghk/lobe-chat/issues/6704) ([471e3ed](471e3ed))

#### Styles

* **misc**: Add Gemini 2.0 Flash model variations, closes [lobehub#6679](https://github.com/bentwnghk/lobe-chat/issues/6679) ([d5a8fcb](d5a8fcb))
* **misc**: Add login ui for next-auth, closes [lobehub#6434](https://github.com/bentwnghk/lobe-chat/issues/6434) ([541f275](541f275))
* **misc**: Add Qwen QwQ model, closes [lobehub#6783](https://github.com/bentwnghk/lobe-chat/issues/6783) ([3d3c2ce](3d3c2ce))
* **misc**: Add QwQ models, closes [lobehub#6770](https://github.com/bentwnghk/lobe-chat/issues/6770) ([cd30fcc](cd30fcc))

</details>

<div align="right">

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

</div>
github-actions bot pushed a commit to jaworldwideorg/OneJA-Bot that referenced this pull request Mar 9, 2025
### [Version&nbsp;1.17.1](v1.17.0...v1.17.1)
<sup>Released on **2025-03-09**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the agent runtime implement.

#### 🐛 Bug Fixes

- **misc**: Fix mistral can not chat.

#### 💄 Styles

- **misc**: Add login ui for next-auth, Add Qwen QwQ model.

<br/>

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

#### Code refactoring

* **misc**: Refactor the agent runtime implement, closes [lobehub#6784](https://github.com/jaworldwideorg/OneJA-Bot/issues/6784) ([14a9874](14a9874))

#### What's fixed

* **misc**: Fix mistral can not chat, closes [lobehub#6828](https://github.com/jaworldwideorg/OneJA-Bot/issues/6828) ([00cba71](00cba71))

#### Styles

* **misc**: Add login ui for next-auth, closes [lobehub#6434](https://github.com/jaworldwideorg/OneJA-Bot/issues/6434) ([541f275](541f275))
* **misc**: Add Qwen QwQ model, closes [lobehub#6783](https://github.com/jaworldwideorg/OneJA-Bot/issues/6783) ([3d3c2ce](3d3c2ce))

</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:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants