deerflow2/frontend/src/core/i18n
Matt Van Horn b40b05f623
feat(frontend): display token usage per conversation turn (#1229)
Surface the usage_metadata that PR #1218 added to the streaming API.
A compact indicator in the chat header shows cumulative tokens consumed
per thread, with a tooltip breakdown of input/output/total counts.

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-03-24 08:59:35 +08:00
..
locales feat(frontend): display token usage per conversation turn (#1229) 2026-03-24 08:59:35 +08:00
context.tsx feat: save locale in cookies 2026-01-20 16:00:39 +08:00
cookies.ts feat: save locale in cookies 2026-01-20 16:00:39 +08:00
hooks.ts fix(i18n): normalize locale and prevent undefined translations (#914) 2026-02-27 08:10:38 +08:00
index.ts fix(i18n): normalize locale and prevent undefined translations (#914) 2026-02-27 08:10:38 +08:00
locale.ts fix(i18n): normalize locale and prevent undefined translations (#914) 2026-02-27 08:10:38 +08:00
server.ts fix(i18n): normalize locale and prevent undefined translations (#914) 2026-02-27 08:10:38 +08:00