feat: 添加日志表格输出速度 (tokens/s) 计算字段#4237
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
WalkthroughA new speed metric column is added to the usage logs table that displays output tokens per second, calculated as completion tokens divided by adjusted generation time (total time minus first response time). The feature includes conditional rendering for specific log types and multilingual support. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
/console/log使用日志表格中新增「速度」列,显示 LLM 输出的 tokens/s 指标completion_tokens / (use_time - frt/1000),即输出 token 数除以首字后的生成耗时Closes #717
Changes
UsageLogsColumnDefs.jsxuseUsageLogsData.jsxweb/src/i18n/locales/*.jsonTest plan
/console/log,确认「速度」列显示在「输出」和「花费」之间-Summary by CodeRabbit