-
-
Couldn't load subscription status.
- Fork 13.9k
💄 style: show token generate performance #6959
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
Conversation
|
@cy948 is attempting to deploy a commit to the LobeChat Desktop Team on Vercel. A member of the Team first needs to authorize it. |
|
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
432c724 to
bfd9a10
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6959 +/- ##
==========================================
- Coverage 89.47% 89.43% -0.05%
==========================================
Files 782 783 +1
Lines 56711 56807 +96
Branches 3788 3800 +12
==========================================
+ Hits 50744 50804 +60
- Misses 5967 6003 +36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dfb7536 to
b635872
Compare
a74de6e to
ec9c222
Compare
794fb53 to
2cacc2b
Compare
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
❤️ Great PR @cy948 ❤️ 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.81.8](v1.81.7...v1.81.8) <sup>Released on **2025-04-21**</sup> #### 💄 Styles - **misc**: Show token generate performance. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Show token generate performance, closes [#6959](#6959) ([33c3fe7](33c3fe7)) </details> <div align="right"> [](#readme-top) </div>
|
🎉 This PR is included in version 1.81.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* 💄 style: show token generate performance * ✅ test: createTokenSpeedCalculator * ✨ feat: add token speed for anthropic * ✅ test: remove speed chunk in pplx * ♻️ refactor: rename params * 🎨 refactor: format codes * ♻️ refactor: del log print * 💄 style: add tooltips * 🌐 i18n: tps, ttft --------- Co-authored-by: Arvin Xu <[email protected]>
### [Version 1.81.8](lobehub/lobe-chat@v1.81.7...v1.81.8) <sup>Released on **2025-04-21**</sup> #### 💄 Styles - **misc**: Show token generate performance. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Styles * **misc**: Show token generate performance, closes [lobehub#6959](lobehub#6959) ([4bd600a](lobehub@4bd600a)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/features/Conversation/Extras/Usage/UsageDetail/index.tsx: 添加 tps, ttft 信息显示src/features/Conversation/Extras/Usage/index.tsx: 将 extra 信息传递到 UsageDetail 中src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts: 将发起请求的时间戳传递到流处理function中src/libs/agent-runtime/utils/streams/openai.ts: 使流经过 性能计算中间件src/libs/agent-runtime/utils/streams/protocol.ts: 性能计算中间件实现src/utils/fetch/fetchSSE.ts: 接收并处理 agentRuntime的性能计算结果src/store/chat/slices/aiChat/actions/generateAIChat.ts: 将性能计算信息和usage信息合并为metadata回传前端📝 补充信息 | Additional Information