-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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 payload #5250
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5250 +/- ##
=========================================
Coverage 92.12% 92.13%
=========================================
Files 570 570
Lines 43517 43570 +53
Branches 2557 3899 +1342
=========================================
+ Hits 40089 40142 +53
Misses 3428 3428
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
❤️ 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. |
### [Version 1.42.2](v1.42.1...v1.42.2) <sup>Released on **2024-12-31**</sup> #### ♻ Code Refactoring - **misc**: Refactor the agent runtime payload. #### 💄 Styles - **misc**: Add o1 model in openai and openrouter models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the agent runtime payload, closes [#5250](#5250) ([e420ab3](e420ab3)) #### Styles * **misc**: Add o1 model in openai and openrouter models, closes [#5236](#5236) ([f733852](f733852)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.42.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.84.2](v1.84.1...v1.84.2) <sup>Released on **2025-01-01**</sup> #### ♻ Code Refactoring - **misc**: Refactor the agent runtime payload. #### 💄 Styles - **misc**: Add o1 model in openai and openrouter models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the agent runtime payload, closes [lobehub#5250](https://github.com/bentwnghk/lobe-chat/issues/5250) ([e420ab3](e420ab3)) #### Styles * **misc**: Add o1 model in openai and openrouter models, closes [lobehub#5236](https://github.com/bentwnghk/lobe-chat/issues/5236) ([f733852](f733852)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
重构完成之后,client fetch 这里就不需要重新映射这些参数了吗? lobe-chat/src/services/chat.ts Lines 93 to 100 in e420ab3
|
After the reconstruction is completed, does client fetch not need to remap these parameters? lobe-chat/src/services/chat.ts Lines 93 to 100 in e420ab3
|
* refactor the code * fix locale * refactor endpoint to baseURL * add tests * fix tests * fix tests * Update auth.ts * update snapshot * fix tests * fix tests
### [Version 1.42.2](lobehub/lobe-chat@v1.42.1...v1.42.2) <sup>Released on **2024-12-31**</sup> #### ♻ Code Refactoring - **misc**: Refactor the agent runtime payload. #### 💄 Styles - **misc**: Add o1 model in openai and openrouter models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor the agent runtime payload, closes [lobehub#5250](lobehub#5250) ([e420ab3](lobehub@e420ab3)) #### Styles * **misc**: Add o1 model in openai and openrouter models, closes [lobehub#5236](lobehub#5236) ([f733852](lobehub@f733852)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
将之前设计不合理的 jwtpayload 中的 endpoint 统一为 baseURL,这样后续就可以直接端到端传递 payload ,不需要中间层解构了。后续 client fetch 部分的读取也可以简化一些了 cc @cy948
📝 补充信息 | Additional Information